Add admin prop to pagespeed page

This commit is contained in:
Alex Holliday
2024-08-27 15:26:16 -07:00
parent e9debd202b
commit 6b98eb76ad

View File

@@ -33,7 +33,7 @@ function App() {
const AdminCheckedRegister = withAdminCheck(Register);
const MonitorsWithAdminProp = withAdminProp(Monitors);
const DetailsWithAdminProp = withAdminProp(Details);
const PageSpeedWithAdminProp = withAdminProp(PageSpeed);
return (
<>
<Routes>
@@ -98,7 +98,7 @@ function App() {
/>
<Route
path="pagespeed"
element={<ProtectedRoute Component={PageSpeed} />}
element={<ProtectedRoute Component={PageSpeedWithAdminProp} />}
/>
<Route
path="pagespeed/create"