Skip to content

Commit 2a14e60

Browse files
committed
feat: loading for migratin actions added
1 parent 0697d17 commit 2a14e60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/transactions/MigrateV3/MigrateV3Actions.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const MigrateV3Actions = () => {
88
const getApprovePermitsForSelectedAssets = useRootStore(
99
(store) => store.getApprovePermitsForSelectedAssets
1010
);
11-
const { approval, action } = useTransactionHandler({
11+
const { approval, action, loadingTxns, approvalTxState } = useTransactionHandler({
1212
handleGetTxns: async () => migrateWithoutPermits(),
1313
handleGetPermitTxns: async (signatures, deadline) => migrateWithPermits(signatures, deadline),
1414
tryPermit: true,
@@ -21,6 +21,7 @@ export const MigrateV3Actions = () => {
2121

2222
return (
2323
<div>
24+
{(loadingTxns || approvalTxState.loading) && 'loading'}
2425
<button onClick={handleApproval}>Approve</button>
2526
{/* <button onClick={() => }></button> */}
2627
<button onClick={action}>Migrate</button>

0 commit comments

Comments
 (0)