Skip to content

Commit

Permalink
Merge pull request #42 from multiversx/development
Browse files Browse the repository at this point in the history
Added a temporary banner on devnet with the hardfork details
  • Loading branch information
radumojic authored Jan 17, 2024
2 parents 9b5a0c4 + ce486fa commit 0ea5087
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
17 changes: 4 additions & 13 deletions src/components/NotificationsBar/NotificationsBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,15 @@ export const NotificationsBar = () => {
)}
{notification.id === TEMP_LOCAL_NOTIFICATION_DISMISSED && (
<div className='w-100'>
This is a new devnet (formerly known as &apos;devnet2&apos; ).
The original devnet was
Devnet hard-fork process scheduled for January 18, 2024 08:00
UTC.
<a
href='https://t.me/MultiversXDevelopers/119578'
href='https://t.me/MultiversXDevelopers/122519'
target='_blank'
rel='noreferrer nofollow noopener'
className='ms-1 text-black'
>
<u>reset on November 1st, 2023</u>
</a>
. Find the old network explorer at{' '}
<a
href='https://devnet-old-explorer.multiversx.com/'
target='_blank'
rel='noreferrer nofollow noopener'
className='ms-1 text-black'
>
<u>https://devnet-old-explorer.multiversx.com</u>
<u>See More</u>
</a>
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useTempStorageNotification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const useTempStorageNotification = () => {
if (!exists) {
addNotification({
id: TEMP_LOCAL_NOTIFICATION_DISMISSED,
text: 'This is a new devnet (formerly known as &apos;devnet2apos; ). The original devnet was reset on November 1st 2023',
text: 'Devnet hard-fork process scheduled for January 18, 2024 08:00 UTC.',
dismissable: true,
priority: 2
});
Expand Down
4 changes: 3 additions & 1 deletion src/layouts/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import {
useNetworkRouter,
useLoopManager,
useCheckVersion,
useGetURLNetwork
useGetURLNetwork,
useTempStorageNotification
} from 'hooks';
import { activeNetworkSelector, defaultNetworkSelector } from 'redux/selectors';

Expand All @@ -37,6 +38,7 @@ export const Layout = () => {
useNetworkRouter();
useLoopManager();
useCheckVersion();
useTempStorageNotification();

const offline = !window.navigator.onLine;

Expand Down

0 comments on commit 0ea5087

Please sign in to comment.