diff --git a/explorer/src/components/Banner.tsx b/explorer/src/components/Banner.tsx index 1862be1f69..15f2d08928 100644 --- a/explorer/src/components/Banner.tsx +++ b/explorer/src/components/Banner.tsx @@ -20,6 +20,11 @@ const announcements = new Map(); // start: new Date("August 1, 2020 00:00:00 GMT+0:00"), // end: new Date("August 3, 2020 00:00:00 GMT+0:00"), // }); +announcements.set(Cluster.MainnetBeta, { + message: + "Mainnet Beta upgrade over the weekend of August 1, 2020. " + + "TRANSACTIONS DISABLED DURING THE UPGRADE", +}); export default function Banner() { const cluster = useCluster().cluster; @@ -31,6 +36,33 @@ export default function Banner() { if (end && now > end) return null; if (start && now < start) return null; + let timeframe; + if (estimate || start || end) { + timeframe = ( +
+
+ {estimate && ( +
+ Estimated Duration: + {estimate} +
+ )} + {start && ( +
+ Started at: + {displayTimestamp(start.getTime())} +
+ )} + {end && ( +
+ End: + {displayTimestamp(end.getTime())} +
+ )} +
+ ); + } + return (
@@ -39,25 +71,7 @@ export default function Banner() { {message} -
- {estimate && ( -
- Estimated Duration: - {estimate} -
- )} - {start && ( -
- Started at: - {displayTimestamp(start.getTime())} -
- )} - {end && ( -
- End: - {displayTimestamp(end.getTime())} -
- )} + {timeframe}