Skip to content

Commit

Permalink
style: 업무경험 - 주요업무 삭제 버튼 아이콘 변경 및 툴팁 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
khakhiD committed Dec 2, 2023
1 parent a4f37be commit 46d08ec
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions src/components/organisms/ResumeCategoryCareer/CareerForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AddIcon, DeleteIcon } from '@chakra-ui/icons';
import { AddIcon } from '@chakra-ui/icons';
import {
VStack,
Text,
Expand All @@ -8,6 +8,7 @@ import {
Flex,
Tooltip,
Box,
Icon,
} from '@chakra-ui/react';
import React, { useEffect } from 'react';
import {
Expand All @@ -19,6 +20,7 @@ import {
useForm,
useWatch,
} from 'react-hook-form';
import { LuDelete } from 'react-icons/lu';
import { useParams } from 'react-router-dom';
import { postResumeCareer } from '~/api/resume/create/postResumeCareer';
import { patchResumeCareer } from '~/api/resume/edit/patchResumeCareer';
Expand Down Expand Up @@ -299,14 +301,30 @@ const DutyForm = ({
m={'1.5rem'}
borderColor={'gray.300'}
/>
<ChakraButton
w={0}
h={0}
alignSelf={'self-end'}
onClick={() => remove(index)}
<Tooltip
placement="left-end"
label="삭제하기"
bg={'gray.800'}
color={'gray.100'}
hasArrow
>
<DeleteIcon />
</ChakraButton>
<ChakraButton
w={'fit-content'}
minW={'fit-content'}
h={'fit-content'}
_hover={{
bg: 'gray.200',
}}
p={0}
alignSelf={'self-end'}
onClick={() => remove(index)}
>
<Icon
as={LuDelete}
boxSize={6}
/>
</ChakraButton>
</Tooltip>
<FormControl isInvalid={Boolean(errors.duties && errors.duties[index]?.title)}>
<FormLabel
htmlFor="dutyTitle"
Expand Down

0 comments on commit 46d08ec

Please sign in to comment.