Hide verify button

This commit is contained in:
Owen
2026-06-01 14:10:08 -07:00
parent 5dd19edb56
commit 3d6d5f176a

View File

@@ -167,6 +167,10 @@ export default function GeneralPage() {
const [isCheckingCache, setIsCheckingCache] = useState(false);
const [isRebuildingCache, setIsRebuildingCache] = useState(false);
// get "imp" from local storage to determine if we should show the verify button (imp = "1" means show)
const showVerifyButton =
typeof window !== "undefined" && localStorage.getItem("imp") === "1";
const handleRebuildCache = async () => {
if (!client.clientId) return;
setIsRebuildingCache(true);
@@ -904,7 +908,7 @@ export default function GeneralPage() {
</SettingsSection>
)}
{/* Hidden cache verification — subtle button, dev/admin diagnostic */}
{showVerifyButton && (
<div className="mt-8 flex flex-col gap-2 items-start opacity-30 hover:opacity-100 transition-opacity">
<button
type="button"
@@ -946,7 +950,9 @@ export default function GeneralPage() {
</div>
<div>
Extra site resources: [
{cacheCheck.extraSiteResourceIds.join(", ")}
{cacheCheck.extraSiteResourceIds.join(
", "
)}
]
</div>
<div>
@@ -972,6 +978,7 @@ export default function GeneralPage() {
</div>
)}
</div>
)}
</SettingsContainer>
);
}