From 4005c671274c22e500b977828d6fbed161db4241 Mon Sep 17 00:00:00 2001 From: iamacook Date: Thu, 6 Jul 2023 15:05:25 +0200 Subject: [PATCH] feat: add chain indicator --- src/components/tx-flow/common/TxLayout/index.tsx | 13 +++++++++---- .../tx-flow/common/TxLayout/styles.module.css | 16 ++++++++++++++-- src/components/tx-flow/flows/NewTx/index.tsx | 5 ++++- .../tx-flow/flows/NewTx/styles.module.css | 14 +++++++++++++- 4 files changed, 40 insertions(+), 8 deletions(-) diff --git a/src/components/tx-flow/common/TxLayout/index.tsx b/src/components/tx-flow/common/TxLayout/index.tsx index 1d4f65623c..a7bf19f0dd 100644 --- a/src/components/tx-flow/common/TxLayout/index.tsx +++ b/src/components/tx-flow/common/TxLayout/index.tsx @@ -13,6 +13,7 @@ import { TxSimulationMessage } from '@/components/tx/security/tenderly' import SafeLogo from '@/public/images/logo-no-text.svg' import { RedefineMessage } from '@/components/tx/security/redefine' import { TxSecurityProvider } from '@/components/tx/security/shared/TxSecurityContext' +import ChainIndicator from '@/components/common/ChainIndicator' type TxLayoutProps = { title: ReactNode @@ -59,10 +60,14 @@ const TxLayout = ({ - - - {title} - + + + + {title} + + + + { {/* Alignment of `TxLayout` */} - + + + diff --git a/src/components/tx-flow/flows/NewTx/styles.module.css b/src/components/tx-flow/flows/NewTx/styles.module.css index 660f48ff54..09b83f0fec 100644 --- a/src/components/tx-flow/flows/NewTx/styles.module.css +++ b/src/components/tx-flow/flows/NewTx/styles.module.css @@ -1,5 +1,10 @@ .container { - margin-top: 110px; + margin-top: 72px; +} + +.chain { + align-self: flex-end; + margin-bottom: var(--space-2); } .pane { @@ -37,6 +42,13 @@ border-radius: unset; } + .chain { + position: absolute; + top: 0; + right: 57px; + margin: var(--space-2); + } + .progressBar { display: none; }