Skip to content

Commit

Permalink
Merge pull request #1310 from hinashi/update/custom_routes
Browse files Browse the repository at this point in the history
Changed the way to specify custom routes
  • Loading branch information
userlocalhost authored Oct 31, 2024
2 parents b95b673 + 54d81ac commit 079fb4b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/src/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import { UserListPage } from "pages/UserListPage";
interface Props {
customRoutes?: {
path: string;
routePath: string;
element: React.ReactNode;
}[];
}
Expand All @@ -91,9 +90,7 @@ export const AppRouter: FC<Props> = ({ customRoutes }) => {
>
{customRoutes &&
customRoutes.map((r) => (
<Route key={r.path} path={r.path}>
<Route path={r.routePath} element={r.element} />
</Route>
<Route key={r.path} path={r.path} element={r.element} />
))}

<Route path={advancedSearchPath()} element={<AdvancedSearchPage />} />
Expand Down

0 comments on commit 079fb4b

Please sign in to comment.