From 9ff0f612c5a98942a1cc841af374515835e68676 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Fri, 11 Oct 2024 14:07:44 +0700 Subject: [PATCH] ui: Fix vertical alignments --- src/App.tsx | 10 +++++++--- src/components/ConfigureGuardians.tsx | 6 ++---- src/components/ConnectWallets.tsx | 2 +- src/components/EnableSafeModule.tsx | 2 +- src/components/GuardianSetup.tsx | 2 +- src/components/RequestedRecoveries.tsx | 17 ++++++++--------- src/components/WalletActions.tsx | 2 +- .../burnerWallet/ConfigureGuardians.tsx | 6 ++---- src/components/burnerWallet/GuardianSetup.tsx | 2 +- .../burnerWallet/RequestedRecoveries.tsx | 9 +-------- src/pages/landingPage.tsx | 8 +++----- 11 files changed, 28 insertions(+), 38 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 4eb1b28..12c65f4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,4 @@ -import { ThemeProvider } from "@mui/material"; +import { Grid, ThemeProvider } from "@mui/material"; import { createContext, useState } from "react"; import "./App.css"; import { BrowserRouter, Route, Routes } from "react-router-dom"; @@ -30,7 +30,11 @@ function App() { -
+ } /> } /> @@ -41,7 +45,7 @@ function App() { /> } /> -
+
diff --git a/src/components/ConfigureGuardians.tsx b/src/components/ConfigureGuardians.tsx index 43fb8c9..bb4fcbd 100644 --- a/src/components/ConfigureGuardians.tsx +++ b/src/components/ConfigureGuardians.tsx @@ -212,10 +212,8 @@ const ConfigureGuardians = () => {
diff --git a/src/components/ConnectWallets.tsx b/src/components/ConnectWallets.tsx index 074f7c1..2e9e67c 100644 --- a/src/components/ConnectWallets.tsx +++ b/src/components/ConnectWallets.tsx @@ -19,7 +19,7 @@ const ConnectWallets = () => { return (
- + Set Up Wallet Recovery diff --git a/src/components/EnableSafeModule.tsx b/src/components/EnableSafeModule.tsx index 2a44f0b..4e9e5be 100644 --- a/src/components/EnableSafeModule.tsx +++ b/src/components/EnableSafeModule.tsx @@ -58,7 +58,7 @@ const EnableSafeModule = () => { } return ( - + Set Up Wallet Recovery diff --git a/src/components/GuardianSetup.tsx b/src/components/GuardianSetup.tsx index eee53b7..1804244 100644 --- a/src/components/GuardianSetup.tsx +++ b/src/components/GuardianSetup.tsx @@ -246,7 +246,7 @@ const GuardianSetup = () => { } return ( - + Set Up Guardian Details diff --git a/src/components/RequestedRecoveries.tsx b/src/components/RequestedRecoveries.tsx index c09cb2f..3b3be6f 100644 --- a/src/components/RequestedRecoveries.tsx +++ b/src/components/RequestedRecoveries.tsx @@ -1,6 +1,6 @@ import MonetizationOnIcon from "@mui/icons-material/MonetizationOn"; import { Box, Grid, Typography } from "@mui/material"; -import { useCallback, useEffect, useRef, useState } from "react"; +import { useCallback, useContext, useEffect, useRef, useState } from "react"; import toast from "react-hot-toast"; import { useNavigate } from "react-router-dom"; import { encodeAbiParameters, encodeFunctionData } from "viem"; @@ -21,6 +21,8 @@ import { useAppContext } from "../context/AppContextHook"; import { config } from "../providers/config"; import { relayer } from "../services/relayer"; import { templateIdx } from "../utils/email"; +import { StepsContext } from "../App"; +import { STEPS } from "../constants"; const BUTTON_STATES = { TRIGGER_RECOVERY: "Trigger Recovery", @@ -35,6 +37,7 @@ const RequestedRecoveries = () => { const { writeContractAsync } = useWriteContract(); const { guardianEmail } = useAppContext(); const navigate = useNavigate(); + const stepsContext = useContext(StepsContext); const [newOwner, setNewOwner] = useState(); const safeWalletAddress = address; @@ -267,18 +270,14 @@ const RequestedRecoveries = () => { } return ( - +