Skip to content

Commit

Permalink
Add loader to bulk execution + removal submitBtn
Browse files Browse the repository at this point in the history
  • Loading branch information
francovenica committed Nov 14, 2023
1 parent a061c3a commit 0533d50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 32 deletions.
12 changes: 9 additions & 3 deletions src/components/tx-flow/flows/ExecuteBatch/ReviewBatch.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Typography, Button, CardActions, Divider, Alert } from '@mui/material'
import { CircularProgress, Typography, Button, CardActions, Divider, Alert } from '@mui/material'
import useAsync from '@/hooks/useAsync'
import { FEATURES } from '@safe-global/safe-gateway-typescript-sdk'
import type { TransactionDetails } from '@safe-global/safe-gateway-typescript-sdk'
Expand Down Expand Up @@ -194,8 +194,14 @@ export const ReviewBatch = ({ params }: { params: ExecuteBatchFlowProps }) => {
<CardActions>
<CheckWallet allowNonOwner={true}>
{(isOk) => (
<Button variant="contained" type="submit" disabled={!isOk || submitDisabled} onClick={handleSubmit}>
Submit
<Button
variant="contained"
type="submit"
disabled={!isOk || submitDisabled}
onClick={handleSubmit}
sx={{ minWidth: '114px' }}
>
{!isSubmittable ? <CircularProgress size={20} /> : 'Submit'}
</Button>
)}
</CheckWallet>
Expand Down
29 changes: 0 additions & 29 deletions src/components/tx/SignOrExecuteForm/SubmitButton.tsx

This file was deleted.

0 comments on commit 0533d50

Please sign in to comment.