Add key prop to routes
This commit is contained in:
+2
-2
@@ -44,8 +44,8 @@ const Routes = () => (
|
||||
"url": "https://sik.ayy.fi",
|
||||
}} />
|
||||
<Switch>
|
||||
{ commonRoutes.map(r => <Route exact path={r.path} render={renderPage(r.page) }/>) }
|
||||
{ adminRoutes.map(r => <Route exact path={r.path} render={renderAdminPage(r.page) }/>) }
|
||||
{ commonRoutes.map(r => <Route key={r.path} exact path={r.path} render={renderPage(r.page) }/>) }
|
||||
{ adminRoutes.map(r => <Route key={r.path} exact path={r.path} render={renderAdminPage(r.page) }/>) }
|
||||
<Route component={NotFoundPage} />
|
||||
</Switch>
|
||||
</Fragment>
|
||||
|
||||
Reference in New Issue
Block a user