-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f85186
commit 2ea2943
Showing
5 changed files
with
516 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'; | ||
import Maincontent from './maincontent'; | ||
import Loginpage from './loginpage'; | ||
import Notes from './notes'; | ||
|
||
function App() { | ||
return ( | ||
const userId = '668d898621c28604796ba8eb'; // Replace with actual logic to get user ID | ||
|
||
return ( | ||
<Router> | ||
<Routes> | ||
<Route path="/" element={<Maincontent />} /> | ||
<Route path="/notes" element={<Notes />} /> | ||
<Route path="/" element={<Maincontent />} /> | ||
<Route path="/notes" element={<Notes userId={userId} />} /> | ||
</Routes> | ||
</Router> | ||
) | ||
); | ||
} | ||
|
||
export default App | ||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.