Skip to content

Commit

Permalink
Dynamically rendering banners
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Mar 21, 2024
1 parent 5029481 commit 30d8e73
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ const PAUSED_CHAINS = [
bannerStartTime: new Date(Date.UTC(2024, 2, 21, 17, 0, 0)),
bannerEndTime: new Date(Date.UTC(2024, 2, 21, 18, 0, 0)),
},
{
id: 'base-chain-pause',
pausedChains: [BASE.id],
startTime: new Date(Date.UTC(2024, 2, 21, 17, 0, 0)),
endTime: new Date(Date.UTC(2024, 2, 21, 17, 30, 0)),
bannerStartTime: new Date(Date.UTC(2024, 2, 21, 17, 0, 0)),
bannerEndTime: new Date(Date.UTC(2024, 2, 21, 18, 0, 0)),
},
]

export const MaintenanceBanners = () => {
Expand Down Expand Up @@ -77,8 +85,8 @@ export const MaintenanceBanner = ({
</p>
</>
}
startDate={MAINTENANCE_BANNERS_START}
endDate={MAINTENANCE_END_DATE}
startDate={startDate}
endDate={endDate}
/>
)
}
Expand Down

0 comments on commit 30d8e73

Please sign in to comment.