Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a temporary banner on devnet with the hardfork details #42

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading