Skip to content

Commit

Permalink
Adding props.onClose() on transfer, deposit, withdraw modals (infor…
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterbloom authored Oct 21, 2024
1 parent 16478ce commit 50bf4be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function DepositModalWindow(props: ModalWindowProps) {
console.log(data)
setLoading(false)
showSuccess('Deposit transaction sent successfully')
setTimeout(() => props.onClose(), 2000) // Close after 2 seconds
},
onError: (error: any) => {
setLoading(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function TransferModalWindow(props: ModalWindowProps) {
console.log(data)
setLoading(false)
showSuccess('Transfer transaction sent successfully')
setTimeout(() => props.onClose(), 2000) // Close after 2 seconds
},
onError: (error: any) => {
setLoading(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function WithdrawModalWindow(props: ModalWindowProps) {
console.log(data)
setLoading(false)
showSuccess('Withdraw transaction sent successfully')
setTimeout(() => props.onClose(), 2000) // Close after 2 seconds
},
onError: (error: any) => {
setLoading(false)
Expand Down

0 comments on commit 50bf4be

Please sign in to comment.