Add admin prop to pagespeed page
This commit is contained in:
1 parent
e9debd202b
commit
6b98eb76ad
1 file changed
+2
-2
+2
-2
@@ -33,7 +33,7 @@ function App() {
|
|||||||
const AdminCheckedRegister = withAdminCheck(Register);
|
const AdminCheckedRegister = withAdminCheck(Register);
|
||||||
const MonitorsWithAdminProp = withAdminProp(Monitors);
|
const MonitorsWithAdminProp = withAdminProp(Monitors);
|
||||||
const DetailsWithAdminProp = withAdminProp(Details);
|
const DetailsWithAdminProp = withAdminProp(Details);
|
||||||
|
const PageSpeedWithAdminProp = withAdminProp(PageSpeed);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Routes>
|
<Routes>
|
||||||
@@ -98,7 +98,7 @@ function App() {
|
|||||||
/>
|
/>
|
||||||
<Route
|
<Route
|
||||||
path="pagespeed"
|
path="pagespeed"
|
||||||
element={<ProtectedRoute Component={PageSpeed} />}
|
element={<ProtectedRoute Component={PageSpeedWithAdminProp} />}
|
||||||
/>
|
/>
|
||||||
<Route
|
<Route
|
||||||
path="pagespeed/create"
|
path="pagespeed/create"
|
||||||
|
|||||||
Reference in new issue
Block a user