This repository was archived by the owner on Nov 13, 2025. It is now read-only.
Repository navigation
Add deprecating message banner #1674
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5d0f783
refactor(layout): replace OutOfSyncBanner and UnsupportedNetworkBanne…
clostao 8eb9e52
feat(layout): restore UnsupportedNetworkBanner to MainLayout component
clostao aa0b32b
fix(DeprecatingBanner): improve layout and text alignment for better …
clostao 528f7fe
fix(DeprecatingBanner): update deprecation message for clarity and em…
clostao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import { EXTERNAL_ROUTES } from '../../constants/routes' | ||
| import Link from 'next/link' | ||
| import { useIndexers } from 'hooks/useIndexers' | ||
| import { NetworkId } from '@autonomys/auto-utils' | ||
|
|
||
| export const DeprecatingBanner = () => { | ||
| const { network } = useIndexers() | ||
| return ( | ||
| <div className='container mx-auto mb-4 flex grow justify-center px-5 md:px-[25px] 2xl:px-0'> | ||
| <div className='sticky top-0 z-10 w-full'> | ||
| <div className='w-full rounded-lg bg-[#DDEFF1] p-5 shadow dark:border-none dark:bg-boxDark'> | ||
| <div className='flex flex-col gap-4 text-center md:text-left'> | ||
| <div className='text-[20px] font-bold text-[#282929] dark:text-white'> | ||
| ⚠️ Astral will be deprecated soon ⚠️ | ||
| </div> | ||
| <div className='text-[15px] text-[#282929] dark:text-white'> | ||
| Please use Subscan for up-to-date network data and Polkadot.js Apps to interact with | ||
| the chain. | ||
| </div> | ||
| <div className='flex flex-col items-center gap-4 md:flex-row md:items-center'> | ||
| {network === NetworkId.MAINNET && ( | ||
| <Link href={EXTERNAL_ROUTES.subscan} target='_blank'> | ||
| <button className='self-start rounded-lg bg-white px-[33px] py-[13px] text-sm font-medium text-gray-800 hover:bg-gray-200 dark:bg-[#1E254E] dark:text-white'> | ||
| Visit Subscan | ||
| </button> | ||
| </Link> | ||
| )} | ||
| <Link className='ml-4' href={EXTERNAL_ROUTES.polkadot(network)} target='_blank'> | ||
|
clostao marked this conversation as resolved.
|
||
| <button className='self-start rounded-lg bg-white px-[33px] py-[13px] text-sm font-medium text-gray-800 hover:bg-gray-200 dark:bg-[#1E254E] dark:text-white'> | ||
| Visit Polkadot.js Apps | ||
| </button> | ||
| </Link> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule dictionary
added at
31a839
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.