generated from mate-academy/react_people-table
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
463f841
commit 8504256
Showing
18 changed files
with
411 additions
and
768 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { | ||
HashRouter as Router, | ||
Routes, | ||
Route, | ||
Navigate, | ||
} from 'react-router-dom'; | ||
import { App } from './App'; | ||
import { HomePage } from './pages/HomePage'; | ||
import { PeoplePage } from './pages/PeoplePage'; | ||
import { ErrorPage } from './pages/ErrorPage'; | ||
|
||
export const Root = () => ( | ||
<Router> | ||
<Routes> | ||
<Route path="/" element={<App />}> | ||
<Route index element={<HomePage />} /> | ||
<Route path="/home" element={<Navigate to="/" replace />} /> | ||
<Route path="/people" element={<PeoplePage />}> | ||
<Route path=":personId" element={<PeoplePage />} /> | ||
</Route> | ||
<Route path="*" element={<ErrorPage />} /> | ||
</Route> | ||
</Routes> | ||
</Router> | ||
); |
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.