From 43005fb9ee85b4d3bcac77630b089d6a7072e661 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Wed, 25 Mar 2026 21:05:52 +0100 Subject: [PATCH] fix: red warning bar instead of amber when navigating with unsaved changes --- components/settings/unified/tabs/SiteBotSpamTab.tsx | 6 +++--- components/settings/unified/tabs/SiteGeneralTab.tsx | 6 +++--- components/settings/unified/tabs/SitePrivacyTab.tsx | 6 +++--- components/settings/unified/tabs/SiteVisibilityTab.tsx | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/components/settings/unified/tabs/SiteBotSpamTab.tsx b/components/settings/unified/tabs/SiteBotSpamTab.tsx index b92954a..99186e3 100644 --- a/components/settings/unified/tabs/SiteBotSpamTab.tsx +++ b/components/settings/unified/tabs/SiteBotSpamTab.tsx @@ -227,15 +227,15 @@ export default function SiteBotSpamTab({ siteId, onDirtyChange, hasPendingAction {isDirty && (
- + {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'}
{hasPendingAction && ( - )} diff --git a/components/settings/unified/tabs/SiteGeneralTab.tsx b/components/settings/unified/tabs/SiteGeneralTab.tsx index 2752960..6631e1a 100644 --- a/components/settings/unified/tabs/SiteGeneralTab.tsx +++ b/components/settings/unified/tabs/SiteGeneralTab.tsx @@ -181,15 +181,15 @@ export default function SiteGeneralTab({ siteId, onDirtyChange, hasPendingAction {isDirty && (
- + {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'}
{hasPendingAction && ( - )} diff --git a/components/settings/unified/tabs/SitePrivacyTab.tsx b/components/settings/unified/tabs/SitePrivacyTab.tsx index 1b6b46f..90b7097 100644 --- a/components/settings/unified/tabs/SitePrivacyTab.tsx +++ b/components/settings/unified/tabs/SitePrivacyTab.tsx @@ -254,15 +254,15 @@ export default function SitePrivacyTab({ siteId, onDirtyChange, hasPendingAction {isDirty && (
- + {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'}
{hasPendingAction && ( - )} diff --git a/components/settings/unified/tabs/SiteVisibilityTab.tsx b/components/settings/unified/tabs/SiteVisibilityTab.tsx index 30790f6..ec6a977 100644 --- a/components/settings/unified/tabs/SiteVisibilityTab.tsx +++ b/components/settings/unified/tabs/SiteVisibilityTab.tsx @@ -150,15 +150,15 @@ export default function SiteVisibilityTab({ siteId, onDirtyChange, hasPendingAct {isDirty && (
- + {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'}
{hasPendingAction && ( - )}