c4f8f4eab0
* MP-1757: implemented the WalletProvider and connect buttons * tidy: tidy up the search * MP-1691: moved modals outside of the DOM * MP-1691: changed CreditManager into AccountDetails * fix: fixed the naming * MP-1691: UX approvements * MP-1691: global confirm and delete modal added * fix: merged the credit-account and wallet branch * MP-1757: added the status store * fix: updated the store interaction * MP-1757: major cleanup of stores * tidy: format
16 lines
359 B
TypeScript
16 lines
359 B
TypeScript
import create from 'zustand'
|
|
|
|
interface AccountDetailsStore {
|
|
fundAccountModal: boolean
|
|
withdrawModal: boolean
|
|
createAccountModal: boolean
|
|
deleteAccountModal: boolean
|
|
}
|
|
|
|
export const useModalStore = create<AccountDetailsStore>()(() => ({
|
|
fundAccountModal: false,
|
|
withdrawModal: false,
|
|
createAccountModal: false,
|
|
deleteAccountModal: false,
|
|
}))
|