From f3ea766301d42b63debd16714b45f2886b82c869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mati=CC=81as?= Date: Tue, 14 Jan 2025 00:39:52 -0300 Subject: [PATCH] clean deploy layout --- .../src/components/layouts/SidebarLayout.tsx | 7 +- .../features/Deploy/SignTransactionsPage.tsx | 12 +- .../website/src/features/Deploy/WithSafe.tsx | 130 ++++++++++-------- 3 files changed, 78 insertions(+), 71 deletions(-) diff --git a/packages/website/src/components/layouts/SidebarLayout.tsx b/packages/website/src/components/layouts/SidebarLayout.tsx index e54b4af35..17500067a 100644 --- a/packages/website/src/components/layouts/SidebarLayout.tsx +++ b/packages/website/src/components/layouts/SidebarLayout.tsx @@ -57,7 +57,6 @@ export function SidebarLayout({ hasSubheader = false, fixedFooter = true, extraContentHeight, - mainContentHeightAuto = false, sidebarTop, mainContentOverflowY = 'auto', borderlessSidebar = false, @@ -110,12 +109,10 @@ export function SidebarLayout({ {/* Main content */}
{/* container p-4 md:px-6 lg:px-8 ml-0 */} -
{children}
+ {children}
); diff --git a/packages/website/src/features/Deploy/SignTransactionsPage.tsx b/packages/website/src/features/Deploy/SignTransactionsPage.tsx index 1aa6d8384..1aa7573b4 100644 --- a/packages/website/src/features/Deploy/SignTransactionsPage.tsx +++ b/packages/website/src/features/Deploy/SignTransactionsPage.tsx @@ -34,7 +34,7 @@ export default function SignTransactionsPage() { if (!currentSafe) return null; return ( -
+
{/* Staged txs */}
@@ -64,9 +64,11 @@ export default function SignTransactionsPage() {
) : !stagedTransactions.staged.length ? ( -

- There are no transactions queued on this Safe. -

+
+

+ There are no transactions queued on this Safe. +

+
) : (
) : (
; + } + + return isLoadingNetworkPrepared ? ( +
+ +
+ ) : isNetworkPrepared ? ( +
+ {children} +
+ ) : ( +
+ +
+ ); +} + +function SelectSafeMessage() { return ( -
- {currentSafe ? ( - isLoadingNetworkPrepared ? ( - - ) : isNetworkPrepared ? ( - children +
+ + + + + +

+ Queue, sign, and execute deployments +

+

+ {isConnected ? ( +

+ +
) : ( - - ) - ) : ( -
- - - - - -

- Queue, sign, and execute deployments -

-

- {isConnected ? ( -

- -
- ) : ( - <> - - {' and select a Safe'} - - )} -

-
- )} + <> + + {' and select a Safe'} + + )} +

); }