-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update multisig verification (#1213)
* chore: update multisig verification * chore * chore: fix lint issues --------- Co-authored-by: chary <[email protected]>
- Loading branch information
1 parent
80d3f6d
commit 6efcc68
Showing
14 changed files
with
320 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
frontend/src/app/(routes)/multisig/components/DialogVerifyAccount.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { dialogBoxPaperPropStyles } from '@/utils/commonStyles'; | ||
import { Dialog, DialogContent } from '@mui/material'; | ||
import React from 'react'; | ||
import VerifyAccount from './VerifyAccount'; | ||
import { useAppDispatch, useAppSelector } from '@/custom-hooks/StateHooks'; | ||
import { setVerifyDialogOpen } from '@/store/features/multisig/multisigSlice'; | ||
import Image from 'next/image'; | ||
import { CLOSE_ICON_PATH } from '@/utils/constants'; | ||
|
||
const DialogVerifyAccount = ({ | ||
address, | ||
chainID, | ||
}: { | ||
chainID: string; | ||
address: string; | ||
}) => { | ||
const dispatch = useAppDispatch(); | ||
const open = useAppSelector((state) => state.multisig.verifyDialogOpen); | ||
const handleClose = () => { | ||
dispatch(setVerifyDialogOpen(false)); | ||
}; | ||
return ( | ||
<Dialog | ||
open={open} | ||
onClose={handleClose} | ||
maxWidth="lg" | ||
PaperProps={{ | ||
sx: dialogBoxPaperPropStyles, | ||
}} | ||
> | ||
<DialogContent sx={{ padding: 0 }}> | ||
<div className="w-[890px] text-white"> | ||
<div className="px-10 py-6 pt-10 flex justify-end"> | ||
<div onClick={handleClose}> | ||
<Image | ||
className="cursor-pointer" | ||
src={CLOSE_ICON_PATH} | ||
width={24} | ||
height={24} | ||
alt="Close" | ||
draggable={false} | ||
/> | ||
</div> | ||
</div> | ||
<div className="mb-10 flex gap-6 px-10 items-center"> | ||
<VerifyAccount chainID={chainID} walletAddress={address} /> | ||
</div> | ||
</div> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
}; | ||
|
||
export default DialogVerifyAccount; |
Oops, something went wrong.