style updates

This commit is contained in:
fmtabbara
2021-08-23 17:18:07 +01:00
parent 54c4bdb7d2
commit 13e357637b
2 changed files with 13 additions and 4 deletions
@@ -7,15 +7,20 @@ import { SendReviewField } from './SendReview'
export const SendConfirmation = ({
amount,
recipient,
onFinish,
}: {
amount: string
recipient: string
onFinish: () => void
}) => {
const theme: Theme = useTheme()
const [isLoading, setIsLoading] = useState(true)
useEffect(() => {
setTimeout(() => setIsLoading(false), 3000)
setTimeout(() => {
setIsLoading(false)
onFinish()
}, 3000)
}, [])
return (
+7 -3
View File
@@ -32,8 +32,8 @@ export const SendWizard = () => {
activeStep={activeStep}
style={{ background: theme.palette.grey[50] }}
>
{steps.map((s) => (
<Step>
{steps.map((s, i) => (
<Step key={i}>
<StepLabel>{s}</StepLabel>
</Step>
))}
@@ -56,7 +56,11 @@ export const SendWizard = () => {
) : activeStep === 1 ? (
<SendReview recipientAddress={toAddress} amount={sendAmount} />
) : (
<SendConfirmation amount={sendAmount} recipient={toAddress} />
<SendConfirmation
amount={sendAmount}
recipient={toAddress}
onFinish={() => setActiveStep((s) => s + 1)}
/>
)}
</div>
<div