From 3bde6ec66e4026cc0327ae3cb4e9d0a7e6771ca0 Mon Sep 17 00:00:00 2001 From: bigboydiamonds <57741810+bigboydiamonds@users.noreply.github.com> Date: Fri, 12 Apr 2024 11:35:44 -0700 Subject: [PATCH] Remove custom margins to allow Bridge parent gap styling to handle spacing --- .../components/Maintenance/Maintenance.tsx | 4 ++-- .../components/EventCountdownProgressBar.tsx | 2 +- .../synapse-interface/components/Warning.tsx | 2 +- .../synapse-interface/public/chainPauses.json | 17 ----------------- .../synapse-interface/public/pausedChains.json | 17 +++++++++++++++++ 5 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 packages/synapse-interface/public/chainPauses.json create mode 100644 packages/synapse-interface/public/pausedChains.json diff --git a/packages/synapse-interface/components/Maintenance/Maintenance.tsx b/packages/synapse-interface/components/Maintenance/Maintenance.tsx index b3bed32955..fe61041c5f 100644 --- a/packages/synapse-interface/components/Maintenance/Maintenance.tsx +++ b/packages/synapse-interface/components/Maintenance/Maintenance.tsx @@ -4,7 +4,7 @@ import { MaintenanceWarningMessage } from './components/MaintenanceWarningMessag import { useMaintenanceCountdownProgress } from './components/useMaintenanceCountdownProgress' /** Import chain pause public constant */ -import chainPausesData from '@/public/chainPauses.json' +import pausedChains from '@/public/pausedChains.json' interface ChainPause { id: string @@ -22,7 +22,7 @@ interface ChainPause { disableCountdown?: boolean } -const PAUSED_CHAINS: ChainPause[] = chainPausesData.map((pause) => ({ +const PAUSED_CHAINS: ChainPause[] = pausedChains.map((pause) => ({ ...pause, startTime: new Date(pause.startTime), endTime: pause.endTime ? new Date(pause.endTime) : null, diff --git a/packages/synapse-interface/components/Maintenance/components/EventCountdownProgressBar.tsx b/packages/synapse-interface/components/Maintenance/components/EventCountdownProgressBar.tsx index d462a7766e..d5ca181026 100644 --- a/packages/synapse-interface/components/Maintenance/components/EventCountdownProgressBar.tsx +++ b/packages/synapse-interface/components/Maintenance/components/EventCountdownProgressBar.tsx @@ -74,7 +74,7 @@ export const EventCountdownProgressBar = ({ return (
{ return (
{header &&
{header}
} {message &&
{message}
} diff --git a/packages/synapse-interface/public/chainPauses.json b/packages/synapse-interface/public/chainPauses.json deleted file mode 100644 index 0c82e73310..0000000000 --- a/packages/synapse-interface/public/chainPauses.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "id": "base-chain-pause", - "pausedFromChains": [8453], - "pausedToChains": [8453], - "startTime": "2024-04-12T17:41:00Z", - "endTime": null, - "bannerStartTime": "2024-04-12T04:40:00Z", - "bannerEndTime": null, - "warningMessage": "Base bridging is paused until maintenance is complete.", - "bannerMessage": "Base bridging is paused until maintenance is complete.", - "progressBarMessage": "Base maintenance in progress", - "disableBanner": false, - "disableWarning": false, - "disableCountdown": false -} -] diff --git a/packages/synapse-interface/public/pausedChains.json b/packages/synapse-interface/public/pausedChains.json new file mode 100644 index 0000000000..02faa6f36a --- /dev/null +++ b/packages/synapse-interface/public/pausedChains.json @@ -0,0 +1,17 @@ +[ + { + "id": "base-chain-pause", + "pausedFromChains": [8453], + "pausedToChains": [8453], + "startTime": "2024-04-12T17:41:00Z", + "endTime": null, + "bannerStartTime": "2024-04-12T04:40:00Z", + "bannerEndTime": null, + "warningMessage": "Base bridging is paused until maintenance is complete.", + "bannerMessage": "Base bridging is paused until maintenance is complete.", + "progressBarMessage": "Base maintenance in progress", + "disableBanner": false, + "disableWarning": false, + "disableCountdown": false + } +]