diff --git a/components/tx/SignProposedTx/index.tsx b/components/tx/SignProposedTx/index.tsx index 37d9b4e219..caad008d00 100644 --- a/components/tx/SignProposedTx/index.tsx +++ b/components/tx/SignProposedTx/index.tsx @@ -42,13 +42,18 @@ const SignProposedTx = ({ return (
- Needs your signature + Confirm transaction -

Transaction id {txSummary.id}

+
+ Transaction id +
+
+        {txSummary.id}
+      
diff --git a/components/tx/TxModal/index.tsx b/components/tx/TxModal/index.tsx index d3ca348947..28c5e12d31 100644 --- a/components/tx/TxModal/index.tsx +++ b/components/tx/TxModal/index.tsx @@ -16,6 +16,8 @@ const style = { left: '50%', transform: 'translate(-50%, -50%)', width: 600, + maxWidth: '100vw', + maxHeight: '90vh', bgcolor: 'background.paper', boxShadow: 24, p: 4, @@ -59,9 +61,11 @@ type TxModalProps = { const TxModal = ({ onClose, txSummary }: TxModalProps) => { const steps = txSummary ? signTxSteps : tokenTransferSteps + const onClick = (e: React.MouseEvent) => e.stopPropagation() + return ( - + diff --git a/components/tx/TxStepper/index.tsx b/components/tx/TxStepper/index.tsx index 75a786811a..5ceaad6a25 100644 --- a/components/tx/TxStepper/index.tsx +++ b/components/tx/TxStepper/index.tsx @@ -25,10 +25,6 @@ const TxStepper = ({ steps, initialStepData }: TxStepperProps): ReactElement => setActiveStep((prevActiveStep) => prevActiveStep - 1) } - const handleReset = () => { - setActiveStep(0) - } - const onSubmit = (data: unknown) => { const allData = [...stepData] allData[activeStep + 1] = data @@ -53,12 +49,7 @@ const TxStepper = ({ steps, initialStepData }: TxStepperProps): ReactElement => {steps[activeStep].render(onSubmit, stepData[activeStep])} - {activeStep === steps.length - 1 ? ( - <> - - - - ) : ( + {activeStep < steps.length - 1 && (