Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
melpsh committed May 19, 2024
1 parent 99d5331 commit 3c7030c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React TEST</title>
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
Expand Down
27 changes: 22 additions & 5 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,30 @@ import ResetPassword from './components/ResetPassword';
import Register from './components/Register';
import { Client } from 'appwrite';

const client = new Client();

function App() {
return (
<div>
<h1>JOB</h1>
client
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject('6646f9a7002e21400b4f');

</div>
const App = () => {
return (
<>
<Routes>
<Route path='/' element={<HomePage />}/>
<Route path='SignUp' element={<SignUp />}/>
<Route path='Login' element={<Login />}/>
<Route path ='IDCard' element={<IDCard />}/>
<Route path='MSPCard' element ={<MSPCard />}/>
<Route path='SINNumber' element ={<SINNumber />}/>
<Route path='Creditcard' element ={<Creditcard />}/>
<Route path='Job' element ={<Job />}/>
<Route path='Accomodation' element ={<Accomodation />}/>
<Route path='Roommate' element ={<Roommate />}/>
<Route path='reset-password' element={<ResetPassword />}/>
<Route path='register' element={<Register />}/>
</Routes>
</>
);
};

Expand Down
7 changes: 3 additions & 4 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import 'bootstrap/dist/css/bootstrap.css';
import { BrowserRouter } from 'react-router-dom';

ReactDOM.createRoot(document.getElementById('root')).render(
<BrowserRouter>
<React.StrictMode>
<div>
<h1>JOBs123</h1>

</div>
<App />
</React.StrictMode>
</BrowserRouter>
)

0 comments on commit 3c7030c

Please sign in to comment.