diff --git a/src/app/app.tsx b/src/app/app.tsx index 6600bb51..308339b6 100644 --- a/src/app/app.tsx +++ b/src/app/app.tsx @@ -2,10 +2,10 @@ import { Route } from 'react-router-dom'; import { AppLayout } from '@components/app.layout'; import { MyVaults } from '@pages/my-vaults/my-vaults'; +import { BalanceContextProvider } from '@providers/balance-context-provider'; import { About } from './pages/about/about'; import { Dashboard } from './pages/dashboard/dashboard'; -import { BalanceContextProvider } from './providers/balance-context-provider'; import { BlockchainContextProvider } from './providers/blockchain-context-provider'; import { VaultContextProvider } from './providers/vault-context-provider'; diff --git a/src/app/components/mint-unmint/components/lock-screen/lock-screen.tsx b/src/app/components/mint-unmint/components/lock-screen/lock-screen.tsx index 10deef6c..06f52836 100644 --- a/src/app/components/mint-unmint/components/lock-screen/lock-screen.tsx +++ b/src/app/components/mint-unmint/components/lock-screen/lock-screen.tsx @@ -5,9 +5,9 @@ import { Button, VStack } from '@chakra-ui/react'; import { VaultCard } from '@components/vault/vault-card'; import { useVaults } from '@hooks/use-vaults'; import { Vault } from '@models/vault'; +import { BlockchainContext } from '@providers/blockchain-context-provider'; import { mintUnmintActions } from '@store/slices/mintunmint/mintunmint.actions'; -import { BlockchainContext } from '../../../../providers/blockchain-context-provider'; import { LockScreenProtocolFee } from './components/protocol-fee'; interface LockScreenProps { diff --git a/src/app/components/mint-unmint/components/mint-unmint.layout.tsx b/src/app/components/mint-unmint/components/mint-unmint.layout.tsx index 5d6c1464..247f0959 100644 --- a/src/app/components/mint-unmint/components/mint-unmint.layout.tsx +++ b/src/app/components/mint-unmint/components/mint-unmint.layout.tsx @@ -1,7 +1,12 @@ import { VStack } from '@chakra-ui/react'; -import { HasChildren } from '@models/has-children'; +import { boxShadowAnimation } from '@styles/css-styles'; -export function MintUnmintLayout({ children }: HasChildren): React.JSX.Element { +interface MintUnmintLayoutProps { + children: React.ReactNode; + animate?: boolean; +} + +export function MintUnmintLayout({ children, animate }: MintUnmintLayoutProps): React.JSX.Element { return ( {children} diff --git a/src/app/components/mint-unmint/components/protocol-summary-stack/protocol-summary-stack.tsx b/src/app/components/mint-unmint/components/protocol-summary-stack/protocol-summary-stack.tsx index 3e12a2fc..3cc84298 100644 --- a/src/app/components/mint-unmint/components/protocol-summary-stack/protocol-summary-stack.tsx +++ b/src/app/components/mint-unmint/components/protocol-summary-stack/protocol-summary-stack.tsx @@ -2,8 +2,8 @@ import { useContext } from 'react'; import { Skeleton, Text, VStack } from '@chakra-ui/react'; +import { BlockchainContext } from '@providers/blockchain-context-provider'; -import { BlockchainContext } from '../../../../providers/blockchain-context-provider'; import { ProtocolSummaryStackLayout } from './components/protocol-summary-stack.layout'; export function ProtocolSummaryStack(): React.JSX.Element { diff --git a/src/app/components/mint-unmint/components/transaction-form/transaction-form.tsx b/src/app/components/mint-unmint/components/transaction-form/transaction-form.tsx index ac4fecf6..fec9e1e1 100644 --- a/src/app/components/mint-unmint/components/transaction-form/transaction-form.tsx +++ b/src/app/components/mint-unmint/components/transaction-form/transaction-form.tsx @@ -3,9 +3,9 @@ import { useContext, useState } from 'react'; import { Button, FormControl, FormErrorMessage, Text, VStack, useToast } from '@chakra-ui/react'; import { customShiftValue } from '@common/utilities'; import { EthereumError } from '@models/error-types'; +import { BlockchainContext } from '@providers/blockchain-context-provider'; import { Form, Formik } from 'formik'; -import { BlockchainContext } from '../../../../providers/blockchain-context-provider'; import { TransactionFormInput } from './components/transaction-form-input'; import { TransactionFormWarning } from './components/transaction-form-warning'; diff --git a/src/app/components/mint-unmint/components/transaction-summary/transaction-summary.tsx b/src/app/components/mint-unmint/components/transaction-summary/transaction-summary.tsx index 68e8ed3f..4cfc561e 100644 --- a/src/app/components/mint-unmint/components/transaction-summary/transaction-summary.tsx +++ b/src/app/components/mint-unmint/components/transaction-summary/transaction-summary.tsx @@ -1,5 +1,5 @@ import { useDispatch } from 'react-redux'; -import { Link, useNavigate } from 'react-router-dom'; +import { useNavigate } from 'react-router-dom'; import { Button, HStack, Spinner, Stack, Text, VStack } from '@chakra-ui/react'; import { VaultCard } from '@components/vault/vault-card'; @@ -35,12 +35,14 @@ interface TransactionSummaryProps { currentStep: [number, string]; flow: 'mint' | 'unmint'; blockchain: 'ethereum' | 'bitcoin'; + handleClose?: () => void; } export function TransactionSummary({ currentStep, flow, blockchain, + handleClose, }: TransactionSummaryProps): React.JSX.Element { const navigate = useNavigate(); const dispatch = useDispatch(); @@ -68,19 +70,9 @@ export function TransactionSummary({ /> )} - + - You can check all of your vaults' status under{' '} - - My Vaults - {' '} - tab. + View vault statuses in the My Vaults tab.