From 1c21bf5ff684e0c5c4a6418dc50613e997fc01e4 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Wed, 25 Mar 2026 21:02:00 +0100 Subject: [PATCH] fix: amber warning style on sticky bar when navigating with unsaved changes --- components/settings/unified/tabs/SiteBotSpamTab.tsx | 12 +++++++++--- components/settings/unified/tabs/SiteGeneralTab.tsx | 12 +++++++++--- components/settings/unified/tabs/SitePrivacyTab.tsx | 12 +++++++++--- .../settings/unified/tabs/SiteVisibilityTab.tsx | 12 +++++++++--- 4 files changed, 36 insertions(+), 12 deletions(-) diff --git a/components/settings/unified/tabs/SiteBotSpamTab.tsx b/components/settings/unified/tabs/SiteBotSpamTab.tsx index 3d7eda4..b92954a 100644 --- a/components/settings/unified/tabs/SiteBotSpamTab.tsx +++ b/components/settings/unified/tabs/SiteBotSpamTab.tsx @@ -225,11 +225,17 @@ export default function SiteBotSpamTab({ siteId, onDirtyChange, hasPendingAction {/* Sticky save bar */} {isDirty && ( -
- {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'} +
+ + {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 6634483..2752960 100644 --- a/components/settings/unified/tabs/SiteGeneralTab.tsx +++ b/components/settings/unified/tabs/SiteGeneralTab.tsx @@ -179,11 +179,17 @@ export default function SiteGeneralTab({ siteId, onDirtyChange, hasPendingAction {/* Sticky save bar */} {isDirty && ( -
- {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'} +
+ + {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 1708748..1b6b46f 100644 --- a/components/settings/unified/tabs/SitePrivacyTab.tsx +++ b/components/settings/unified/tabs/SitePrivacyTab.tsx @@ -252,11 +252,17 @@ export default function SitePrivacyTab({ siteId, onDirtyChange, hasPendingAction {/* Sticky save bar — only visible when dirty */} {isDirty && ( -
- {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'} +
+ + {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 441a064..30790f6 100644 --- a/components/settings/unified/tabs/SiteVisibilityTab.tsx +++ b/components/settings/unified/tabs/SiteVisibilityTab.tsx @@ -148,11 +148,17 @@ export default function SiteVisibilityTab({ siteId, onDirtyChange, hasPendingAct {/* Sticky save bar */} {isDirty && ( -
- {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'} +
+ + {hasPendingAction ? 'Save or discard to continue' : 'Unsaved changes'} +
{hasPendingAction && ( - )}