Skip to content

Commit

Permalink
add description to verify modal
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jun 16, 2024
1 parent f29af8e commit 2a6d98f
Showing 1 changed file with 47 additions and 33 deletions.
80 changes: 47 additions & 33 deletions src/components/elements/EditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { CheckIcon, CloseIcon } from "@chakra-ui/icons";
import {
Box,
Button,
Center,
Divider,
Flex,
Modal,
ModalBody,
Expand Down Expand Up @@ -101,39 +103,51 @@ export function EditModal() {

<ModalBody textAlign="justify">
{verify ? (
<Flex direction="row" marginBottom="1rem" justifyContent="center">
<Button
margin="0.6rem"
w="8rem"
padding="1.5rem 0"
colorScheme={"brand"}
transition="all 0.2s ease"
onClick={apply}
>
<CheckIcon />
<ControllerButton
h="2rem"
button="a"
marginLeft="1rem"
invert
/>
</Button>
<Button
margin="0.6rem"
w="8rem"
padding="1.5rem 0"
colorScheme={"brand"}
transition="all 0.2s ease"
onClick={cancel}
>
<CloseIcon />
<ControllerButton
h="2rem"
button="b"
marginLeft="1rem"
invert
/>
</Button>
<Flex direction="column">
<Flex direction="row" margin="1rem">
<Center>
<Divider
orientation="vertical"
marginRight="0.75rem"
alignSelf="stretch"
></Divider>
</Center>
<Box>{setting.hint}</Box>
</Flex>
<Flex direction="row" marginBottom="1rem" justifyContent="center">
<Button
margin="0.6rem"
w="8rem"
padding="1.5rem 0"
colorScheme={"brand"}
transition="all 0.2s ease"
onClick={apply}
>
<CheckIcon />
<ControllerButton
h="2rem"
button="a"
marginLeft="1rem"
invert
/>
</Button>
<Button
margin="0.6rem"
w="8rem"
padding="1.5rem 0"
colorScheme={"brand"}
transition="all 0.2s ease"
onClick={cancel}
>
<CloseIcon />
<ControllerButton
h="2rem"
button="b"
marginLeft="1rem"
invert
/>
</Button>
</Flex>
</Flex>
) : (
<Flex direction="column" marginBottom="1rem">
Expand Down

0 comments on commit 2a6d98f

Please sign in to comment.