conditionally render pages, add test email button

This commit is contained in:
Alex Holliday committed 2025-05-12 11:36:54 -07:00
1 parent 53fe67959d
commit 9cfbf6adde
5 files changed
+51 -2

No files matched your search

@@ -12,6 +12,7 @@ import { useState, useEffect } from "react";
import { useTranslation } from "react-i18next";
const SettingsPagespeed = ({
isAdmin,
HEADING_SX,
settingsData,
setSettingsData,
@@ -33,6 +34,10 @@ const SettingsPagespeed = ({
});
};
if (!isAdmin) {
return null;
}
return (
<ConfigBox>
<Box>
@@ -78,6 +83,7 @@ const SettingsPagespeed = ({
};
SettingsPagespeed.propTypes = {
isAdmin: PropTypes.bool,
HEADING_SX: PropTypes.object,
settingsData: PropTypes.object,
setSettingsData: PropTypes.func,