From 4e87f0135256ab7f242eedab35bfa5535cf21537 Mon Sep 17 00:00:00 2001 From: Jack Hamer Date: Fri, 15 Mar 2024 14:01:59 +0200 Subject: [PATCH] fix: add deprecated network alert --- components/network/DeprecationAlert.vue | 41 +++++++++++++++++++++++++ data/networks.ts | 2 ++ pages/assets.vue | 1 + pages/transfers.vue | 1 + views/transactions/Deposit.vue | 1 + views/transactions/Transfer.vue | 1 + 6 files changed, 47 insertions(+) create mode 100644 components/network/DeprecationAlert.vue diff --git a/components/network/DeprecationAlert.vue b/components/network/DeprecationAlert.vue new file mode 100644 index 000000000..a04cfb6df --- /dev/null +++ b/components/network/DeprecationAlert.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/data/networks.ts b/data/networks.ts index 5264b3ebf..6fa3ff4f8 100644 --- a/data/networks.ts +++ b/data/networks.ts @@ -28,6 +28,7 @@ export type ZkSyncNetwork = { name: string; rpcUrl: string; hidden?: boolean; // If set to true, the network will not be shown in the network selector + deprecated?: boolean; l1Network?: L1Network; blockExplorerUrl?: string; blockExplorerApi?: string; @@ -97,6 +98,7 @@ const publicChains: ZkSyncNetwork[] = [ rpcUrl: "https://testnet.era.zksync.dev", blockExplorerUrl: "https://goerli.explorer.zksync.io", blockExplorerApi: "https://block-explorer-api.testnets.zksync.dev", + deprecated: true, displaySettings: { showPartnerLinks: true, }, diff --git a/pages/assets.vue b/pages/assets.vue index 8ca698dac..ed08eb51b 100644 --- a/pages/assets.vue +++ b/pages/assets.vue @@ -1,5 +1,6 @@