From 85970e201ce5a9468f8e918f959a13be0f41dfcd Mon Sep 17 00:00:00 2001 From: Peiman <25097709+Rickk137@users.noreply.github.com> Date: Fri, 14 Jun 2024 14:01:08 +0330 Subject: [PATCH] feat: update network controller style (#306) --- .../icons/EthereumIcon/EthereumIcon.tsx | 9 +++++-- .../src/layouts/Default/NetworkController.tsx | 24 +++++++++++++++---- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/liquidity/components/icons/EthereumIcon/EthereumIcon.tsx b/liquidity/components/icons/EthereumIcon/EthereumIcon.tsx index 166de8c9d..b8468e0b6 100644 --- a/liquidity/components/icons/EthereumIcon/EthereumIcon.tsx +++ b/liquidity/components/icons/EthereumIcon/EthereumIcon.tsx @@ -1,8 +1,13 @@ import { Icon, IconProps } from '@chakra-ui/react'; -export const EthereumIcon = ({ width = '24px', height = '24px', fill = `#627EEA` }: IconProps) => { +export const EthereumIcon = ({ + width = '24px', + height = '24px', + fill = `#627EEA`, + ...props +}: IconProps) => { return ( - + - + - - {mainnets.concat(showTestnets ? testnets : []).map(({ id, preset, label }) => ( + + {mainnets.map(({ id, preset, label }) => ( setNetwork(id)}> - + {label} ))} + + {showTestnets && } + @@ -140,6 +147,15 @@ export function NetworkController() { /> + + {(showTestnets ? testnets : []).map(({ id, preset, label }) => ( + setNetwork(id)}> + + + {label} + + + ))} {activeWallet ? (