Skip to content

Commit f25ffd0

Browse files
authored
chore: only show close button on rejected dialog and compound initialize dialog (#841)
1 parent eca7bb6 commit f25ffd0

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.changeset/witty-eagles-reflect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hub': patch
3+
---
4+
5+
Only show close button on rejected dialog and Compound initialize

apps/hub/src/app/_components/stake/hooks/use-action-status-content.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ export function useActionStatusContent(
2020
title: 'Sign in',
2121
description: 'Please sign the message in your wallet.',
2222
state: 'pending',
23-
showCloseButton: true,
23+
showCloseButton: false,
2424
}))
2525
.with({ type: 'siwe', step: 'processing' }, () => ({
2626
title: 'Signing in',
2727
description: 'Wait a moment.',
2828
state: 'processing',
29-
showCloseButton: true,
29+
showCloseButton: false,
3030
}))
3131
.with({ type: 'siwe', step: 'rejected' }, () => ({
3232
title: 'Request was rejected',
@@ -40,13 +40,13 @@ export function useActionStatusContent(
4040
title: 'Ready to create new vault',
4141
description: 'Please sign the message in your wallet.',
4242
state: 'pending',
43-
showCloseButton: true,
43+
showCloseButton: false,
4444
}))
4545
.with({ type: 'createVault', step: 'processing' }, () => ({
4646
title: 'Creating new vault',
4747
description: 'Wait a moment.',
4848
state: 'processing',
49-
showCloseButton: true,
49+
showCloseButton: false,
5050
}))
5151
.with({ type: 'createVault', step: 'rejected' }, () => ({
5252
title: 'Request was rejected',
@@ -85,7 +85,7 @@ export function useActionStatusContent(
8585
title: `Ready to stake ${formatSNT(state.amount ?? 0, { includeSymbol: true })}`,
8686
description: 'Please sign the message in your wallet.',
8787
state: 'pending',
88-
showCloseButton: true,
88+
showCloseButton: false,
8989
})
9090
)
9191

@@ -112,7 +112,7 @@ export function useActionStatusContent(
112112
title: `Ready to unstake ${formatSNT(state.amount ?? 0, { includeSymbol: true })}`,
113113
description: 'Please sign the message in your wallet.',
114114
state: 'pending',
115-
showCloseButton: true,
115+
showCloseButton: false,
116116
})
117117
)
118118
.with({ type: 'unstaking', step: 'processing' }, state => ({
@@ -147,7 +147,7 @@ export function useActionStatusContent(
147147
title: 'Ready to lock vault',
148148
description: 'Please sign the message in your wallet.',
149149
state: 'pending',
150-
showCloseButton: true,
150+
showCloseButton: false,
151151
}))
152152
.with({ type: 'lock', step: 'processing' }, () => ({
153153
title: 'Locking vault',

0 commit comments

Comments
 (0)