mars-v2-frontend/components/Account/ConfirmModal.tsx
Linkie Link c4f8f4eab0
Mp 1757 wallet connect (#66)
* 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
2022-12-08 21:14:38 +01:00

25 lines
719 B
TypeScript

import CircularProgress from 'components/CircularProgress'
import Modal from 'components/Modal'
import Text from 'components/Text'
import { useModalStore } from 'stores'
const ConfirmModal = () => {
const createOpen = useModalStore((s) => s.createAccountModal)
const deleteOpen = useModalStore((s) => s.deleteAccountModal)
return (
<Modal open={createOpen || deleteOpen}>
<div className='w-full p-6'>
<Text size='2xl' uppercase={true} className='mb-6 w-full text-center'>
Confirm Transaction
</Text>
<div className='flex w-full justify-center pb-6'>
<CircularProgress size={40} />
</div>
</div>
</Modal>
)
}
export default ConfirmModal