Skip to content

Commit

Permalink
Simplify mapping of pages
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsmiarowski committed Aug 16, 2023
1 parent 2295658 commit 12b40c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ const Routing = () => {
<Routes>
<Route path="*" element={<Layout />}>
<Route index element={<Navigate to="overview" />} />
{pages.map((page) => renderPageComponent(page))}
{pages.map(renderPageComponent)}
<Route path="*" element={<Navigate to="overview" />} />
</Route>
</Routes>
Expand Down

0 comments on commit 12b40c9

Please sign in to comment.