Skip to content

Commit

Permalink
Adding props.onClose() on transfer, deposit, withdraw modals (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterbloom authored and hu55a1n1 committed Oct 21, 2024
1 parent e60ea38 commit 1e6ffa7
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 1e6ffa7

Please sign in to comment.