remove blur on success action

This commit is contained in:
saml33 2021-08-02 15:11:49 +10:00
parent 2c3e7910e3
commit 3c64b9f059
4 changed files with 15 additions and 0 deletions

View File

@ -53,6 +53,9 @@ const AccountNameModal: FunctionComponent<AccountNameModalProps> = ({
name
)
actions.fetchMangoAccounts()
setMangoStore((state) => {
state.blurBackground = false
})
onClose()
notify({
title: 'Account name updated',

View File

@ -46,6 +46,9 @@ const AccountsModal: FunctionComponent<AccountsModalProps> = ({
})
// TODO
// actions.fetchTradeHistory()
setMangoStore((state) => {
state.blurBackground = false
})
onClose()
}

View File

@ -158,6 +158,9 @@ const DepositModal: FunctionComponent<DepositModalProps> = ({
})
console.log('deposit response', response)
setSubmitting(false)
setMangoStore((state) => {
state.blurBackground = false
})
onClose()
actions.fetchMangoAccounts()
})

View File

@ -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()
})
}