diff --git a/frontend/src/components/myPage/EditUserProfileForm/EditUserProfileForm.style.ts b/frontend/src/components/myPage/EditUserProfileForm/EditUserProfileForm.style.ts index e03b6b254..7f71eb80e 100644 --- a/frontend/src/components/myPage/EditUserProfileForm/EditUserProfileForm.style.ts +++ b/frontend/src/components/myPage/EditUserProfileForm/EditUserProfileForm.style.ts @@ -25,11 +25,37 @@ export const buttonStyling = css({ }); export const deleteButtonStyling = css({ - marginTop: Theme.spacer.spacing1, + marginTop: Theme.spacer.spacing3, + padding: 0, color: Theme.color.gray600, + fontWeight: 'normal', '&:hover': { - color: Theme.color.gray800, + backgroundColor: 'transparent !important', + + color: Theme.color.gray700, + }, +}); + +export const modalContentStyling = css({ + width: '350px', + + '& h6': { + marginBottom: Theme.spacer.spacing3, + + color: Theme.color.red300, + }, +}); + +export const modalButtonContainerStyling = css({ + gap: Theme.spacer.spacing1, + alignItems: 'stretch', + + width: '100%', + marginTop: Theme.spacer.spacing5, + + '& > *': { + width: '100%', }, }); diff --git a/frontend/src/components/myPage/EditUserProfileForm/EditUserProfileForm.tsx b/frontend/src/components/myPage/EditUserProfileForm/EditUserProfileForm.tsx index 888c70352..32f23f2be 100644 --- a/frontend/src/components/myPage/EditUserProfileForm/EditUserProfileForm.tsx +++ b/frontend/src/components/myPage/EditUserProfileForm/EditUserProfileForm.tsx @@ -1,10 +1,12 @@ -import { Button } from 'hang-log-design-system'; +import { Box, Button, Flex, Heading, Modal, Text, useOverlay } from 'hang-log-design-system'; import { buttonStyling, deleteButtonStyling, formStyling, imageInputStyling, + modalButtonContainerStyling, + modalContentStyling, } from '@components/myPage/EditUserProfileForm/EditUserProfileForm.style'; import NicknameInput from '@components/myPage/EditUserProfileForm/NicknameInput/NicknameInput'; import ProfileImageInput from '@components/myPage/EditUserProfileForm/ProfileImageInput/ProfileImageInput'; @@ -22,6 +24,12 @@ const EditUserProfileForm = ({ initialData }: EditUserProfileForm) => { const { userInfo, isNicknameError, updateInputValue, disableNicknameError, handleSubmit } = useEditUserProfileForm(initialData); + const { + isOpen: isDeleteModalOpen, + close: closeDeleteModal, + open: openDeleteModal, + } = useOverlay(); + const deleteAccountMutation = useDeleteAccountMutation(); const handleAccountDelete = () => { @@ -29,30 +37,49 @@ const EditUserProfileForm = ({ initialData }: EditUserProfileForm) => { }; return ( -
+ <> + +