remove blur on success action
This commit is contained in:
parent
2c3e7910e3
commit
3c64b9f059
|
@ -53,6 +53,9 @@ const AccountNameModal: FunctionComponent<AccountNameModalProps> = ({
|
|||
name
|
||||
)
|
||||
actions.fetchMangoAccounts()
|
||||
setMangoStore((state) => {
|
||||
state.blurBackground = false
|
||||
})
|
||||
onClose()
|
||||
notify({
|
||||
title: 'Account name updated',
|
||||
|
|
|
@ -46,6 +46,9 @@ const AccountsModal: FunctionComponent<AccountsModalProps> = ({
|
|||
})
|
||||
// TODO
|
||||
// actions.fetchTradeHistory()
|
||||
setMangoStore((state) => {
|
||||
state.blurBackground = false
|
||||
})
|
||||
onClose()
|
||||
}
|
||||
|
||||
|
|
|
@ -158,6 +158,9 @@ const DepositModal: FunctionComponent<DepositModalProps> = ({
|
|||
})
|
||||
console.log('deposit response', response)
|
||||
setSubmitting(false)
|
||||
setMangoStore((state) => {
|
||||
state.blurBackground = false
|
||||
})
|
||||
onClose()
|
||||
actions.fetchMangoAccounts()
|
||||
})
|
||||
|
|
|
@ -193,6 +193,9 @@ const WithdrawModal: FunctionComponent<WithdrawModalProps> = ({
|
|||
type: 'success',
|
||||
txid,
|
||||
})
|
||||
setMangoStore((state) => {
|
||||
state.blurBackground = false
|
||||
})
|
||||
onClose()
|
||||
})
|
||||
.catch((err) => {
|
||||
|
@ -204,6 +207,9 @@ const WithdrawModal: FunctionComponent<WithdrawModalProps> = ({
|
|||
txid: err.txid,
|
||||
type: 'error',
|
||||
})
|
||||
setMangoStore((state) => {
|
||||
state.blurBackground = false
|
||||
})
|
||||
onClose()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue