Add admin prop to pagespeed page

This commit is contained in:
Alex Holliday committed 2024-08-27 15:26:16 -07:00
1 parent e9debd202b
commit 6b98eb76ad
1 file changed
+2 -2
+2 -2
View File
@@ -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"