-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d61bdc3
commit 40e2eb0
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/views/Home/components/ExistingUser/ExistingUserModal.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,44 @@ | ||
/* eslint-disable jsx-a11y/alt-text */ | ||
import React, { useState } from 'react'; | ||
import { | ||
Box, | ||
Flex, | ||
Text, | ||
ModalBody, | ||
ModalCloseButton, | ||
Center, | ||
Grid, | ||
VStack, | ||
} from '@chakra-ui/react'; | ||
import MyModal from "@/components/Modal/Modal"; | ||
import ExistingUser from "../ExistingUser/ExistingUser"; | ||
|
||
export default function ExistingUserModal({ onClick, email, address, secretWords, sub } : | ||
{ onClick: () => void, email: string, address: string, secretWords: string[], sub: string}) { | ||
|
||
return ( | ||
<MyModal | ||
isOpen={true} | ||
onClose={onClick} | ||
size={"6xl"} | ||
overlayProps={{ | ||
backdropFilter: "blur(6px)", | ||
background: "transparent", | ||
}} | ||
background={"white"} | ||
borderRadius={"20px"} | ||
py={25} | ||
isCentered={true} | ||
justifyItems="center" | ||
alignItems="center" | ||
> | ||
<ModalCloseButton /> | ||
<ModalBody> | ||
<Text> | ||
<ExistingUser email={email} address={address || ""} secretWords={secretWords || []} userGid={sub}/> | ||
</Text> | ||
</ModalBody> | ||
</MyModal> | ||
); | ||
} | ||
|
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