Skip to content

Commit

Permalink
fix: remove concat of prop.layout and prop.path in admin.jsx @coopern…
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome committed Feb 26, 2024
1 parent 5aa904d commit 7ae25ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ui/layouts/Admin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ const switchRoutes = (
<Routes>
{routes.map((prop, key) => {
if (prop.layout === '/admin') {
return (
<Route exact path={prop.layout + prop.path} element={<prop.component />} key={key} />
);
return <Route exact path={prop.path} element={<prop.component />} key={key} />;
}
return null;
})}
Expand Down

0 comments on commit 7ae25ff

Please sign in to comment.