From 78a57395e59257ebd793d1318d5f3559718f74f4 Mon Sep 17 00:00:00 2001 From: koko37 Date: Thu, 26 Dec 2024 09:59:56 +0800 Subject: [PATCH] update menu --- src/assets/icons/cog.svg | 4 ++++ src/pages/network/evm/Home.jsx | 14 ++++---------- src/pages/network/tron/Home.jsx | 13 ++++--------- 3 files changed, 12 insertions(+), 19 deletions(-) create mode 100644 src/assets/icons/cog.svg diff --git a/src/assets/icons/cog.svg b/src/assets/icons/cog.svg new file mode 100644 index 0000000..1f4f837 --- /dev/null +++ b/src/assets/icons/cog.svg @@ -0,0 +1,4 @@ + diff --git a/src/pages/network/evm/Home.jsx b/src/pages/network/evm/Home.jsx index 3358219..5a9d8d1 100644 --- a/src/pages/network/evm/Home.jsx +++ b/src/pages/network/evm/Home.jsx @@ -5,7 +5,7 @@ import { ethers } from "ethers"; import styled from "styled-components"; import toFlexible from "toflexible"; -import ArrowUpIcon from "@mybucks/assets/icons/arrow-up.svg"; +import CogIcon from "@mybucks/assets/icons/cog.svg"; import CopyIcon from "@mybucks/assets/icons/copy.svg"; import GasIcon from "@mybucks/assets/icons/gas.svg"; import HideIcon from "@mybucks/assets/icons/hide.svg"; @@ -25,7 +25,7 @@ import media from "@mybucks/styles/media"; const NetworkAndFeatures = styled.div` display: flex; align-items: center; - justify-content: space-between; + gap: 1rem; margin-bottom: ${({ theme }) => theme.sizes.x4l}; ${media.md` @@ -47,7 +47,6 @@ const GasPriceWrapper = styled.div` display: flex; align-items: center; gap: 6px; - width: 6rem; visibility: ${({ $show }) => ($show ? "visible" : "hidden")}; font-weight: ${({ theme }) => theme.weights.regular}; font-size: ${({ theme }) => theme.sizes.sm}; @@ -58,12 +57,7 @@ const MenuButton = styled(BaseButton).attrs({ $size: "small" })` align-items: center; gap: 8px; padding: 6px 8px; - - ${media.sm` - span { - display: none; - } - `} + margin-left: auto; `; const CloseButton = styled(BaseButton).attrs({ $size: "small" })` @@ -196,7 +190,7 @@ const EvmHome = () => { openMenu(true)}> - Backup + diff --git a/src/pages/network/tron/Home.jsx b/src/pages/network/tron/Home.jsx index a9512c3..22ec9d5 100644 --- a/src/pages/network/tron/Home.jsx +++ b/src/pages/network/tron/Home.jsx @@ -4,7 +4,7 @@ import copy from "clipboard-copy"; import styled from "styled-components"; import toFlexible from "toflexible"; -import ArrowUpIcon from "@mybucks/assets/icons/arrow-up.svg"; +import CogIcon from "@mybucks/assets/icons/cog.svg"; import CopyIcon from "@mybucks/assets/icons/copy.svg"; import HideIcon from "@mybucks/assets/icons/hide.svg"; import LockIcon from "@mybucks/assets/icons/lock.svg"; @@ -24,7 +24,7 @@ import media from "@mybucks/styles/media"; const NetworkAndFeatures = styled.div` display: flex; align-items: center; - justify-content: space-between; + gap: 1rem; margin-bottom: ${({ theme }) => theme.sizes.x4l}; ${media.md` @@ -47,12 +47,7 @@ const MenuButton = styled(BaseButton).attrs({ $size: "small" })` align-items: center; gap: 8px; padding: 6px 8px; - - ${media.sm` - span { - display: none; - } - `} + margin-left: auto; `; const CloseButton = styled(BaseButton).attrs({ $size: "small" })` @@ -208,7 +203,7 @@ const TronHome = () => { openMenu(true)}> - Backup +