From e012a9058158be3b966228f18c7b22fc06e8cf3c Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Wed, 17 Jan 2024 18:11:24 +0200 Subject: [PATCH 1/2] - added a temporary banner on devnet with the hardfork details --- .../NotificationsBar/NotificationsBar.tsx | 17 ++++------------- src/hooks/useTempStorageNotification.ts | 2 +- src/layouts/Layout/Layout.tsx | 4 +++- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/components/NotificationsBar/NotificationsBar.tsx b/src/components/NotificationsBar/NotificationsBar.tsx index 21b345426..cbd6fde1d 100644 --- a/src/components/NotificationsBar/NotificationsBar.tsx +++ b/src/components/NotificationsBar/NotificationsBar.tsx @@ -51,24 +51,15 @@ export const NotificationsBar = () => { )} {notification.id === TEMP_LOCAL_NOTIFICATION_DISMISSED && (
- This is a new devnet (formerly known as 'devnet2' ). - The original devnet was + Devnet Hardfork process scheduled for January 18, 2024 08:00 + UTC. - reset on November 1st, 2023 - - . Find the old network explorer at{' '} - - https://devnet-old-explorer.multiversx.com + See More
)} diff --git a/src/hooks/useTempStorageNotification.ts b/src/hooks/useTempStorageNotification.ts index a4642e76a..0ab5d8a6e 100644 --- a/src/hooks/useTempStorageNotification.ts +++ b/src/hooks/useTempStorageNotification.ts @@ -21,7 +21,7 @@ export const useTempStorageNotification = () => { if (!exists) { addNotification({ id: TEMP_LOCAL_NOTIFICATION_DISMISSED, - text: 'This is a new devnet (formerly known as 'devnet2apos; ). The original devnet was reset on November 1st 2023', + text: ' Devnet Hardfork process scheduled for January 18, 2024 08:00 UTC.', dismissable: true, priority: 2 }); diff --git a/src/layouts/Layout/Layout.tsx b/src/layouts/Layout/Layout.tsx index 0f3aab517..26cc8af0c 100644 --- a/src/layouts/Layout/Layout.tsx +++ b/src/layouts/Layout/Layout.tsx @@ -11,7 +11,8 @@ import { useNetworkRouter, useLoopManager, useCheckVersion, - useGetURLNetwork + useGetURLNetwork, + useTempStorageNotification } from 'hooks'; import { activeNetworkSelector, defaultNetworkSelector } from 'redux/selectors'; @@ -37,6 +38,7 @@ export const Layout = () => { useNetworkRouter(); useLoopManager(); useCheckVersion(); + useTempStorageNotification(); const offline = !window.navigator.onLine; From ce486faafb7529faaaf64a4b90aa8df2e654797c Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Wed, 17 Jan 2024 18:19:17 +0200 Subject: [PATCH 2/2] - updated hard fork spelling --- src/components/NotificationsBar/NotificationsBar.tsx | 2 +- src/hooks/useTempStorageNotification.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NotificationsBar/NotificationsBar.tsx b/src/components/NotificationsBar/NotificationsBar.tsx index cbd6fde1d..d40e0c62e 100644 --- a/src/components/NotificationsBar/NotificationsBar.tsx +++ b/src/components/NotificationsBar/NotificationsBar.tsx @@ -51,7 +51,7 @@ export const NotificationsBar = () => { )} {notification.id === TEMP_LOCAL_NOTIFICATION_DISMISSED && (
- Devnet Hardfork process scheduled for January 18, 2024 08:00 + Devnet hard-fork process scheduled for January 18, 2024 08:00 UTC. { if (!exists) { addNotification({ id: TEMP_LOCAL_NOTIFICATION_DISMISSED, - text: ' Devnet Hardfork process scheduled for January 18, 2024 08:00 UTC.', + text: 'Devnet hard-fork process scheduled for January 18, 2024 08:00 UTC.', dismissable: true, priority: 2 });