From 060810ba5e9198f32924d3b9a4b0005d771a8ca2 Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Mon, 26 Aug 2024 17:28:32 +0300 Subject: [PATCH] updated mainnet config fixes after review --- src/components/CustomNetwork/CustomNetworkDetails.tsx | 9 ++++----- src/config/config.mainnet.ts | 7 ++++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/CustomNetwork/CustomNetworkDetails.tsx b/src/components/CustomNetwork/CustomNetworkDetails.tsx index 6ceb3a219..2e808e47a 100644 --- a/src/components/CustomNetwork/CustomNetworkDetails.tsx +++ b/src/components/CustomNetwork/CustomNetworkDetails.tsx @@ -13,13 +13,12 @@ import { faTrash, faCheck } from 'icons/regular'; import { activeNetworkSelector } from 'redux/selectors'; import { WithClassnameType } from 'types'; -const NetworkDetail = ({ - title, - description -}: { +export interface NetworkDetailUIType { title: string; description: React.ReactNode; -}) => { +} + +const NetworkDetail = ({ title, description }: NetworkDetailUIType) => { return (
{title}:
diff --git a/src/config/config.mainnet.ts b/src/config/config.mainnet.ts index a689a950c..5ee63208a 100644 --- a/src/config/config.mainnet.ts +++ b/src/config/config.mainnet.ts @@ -1,4 +1,6 @@ import { NetworkType } from 'types/network.types'; + +import { getStorageCustomNetworks } from './helpers'; import { allApps, schema } from './sharedConfig'; export * from './sharedConfig'; @@ -16,7 +18,10 @@ export const networks: NetworkType[] = [ nftExplorerAddress: 'https://xspotlight.com', apiAddress: 'https://api.multiversx.com', growthApi: 'https://tools.multiversx.com/growth-api' - } + }, + + // Saved Custom Network Configs + ...getStorageCustomNetworks() ]; export const multiversxApps = allApps();