Skip to content

Commit

Permalink
hotfix: 이력서 작성완료 버튼 추가 (#262)
Browse files Browse the repository at this point in the history
* feat: 작성 완료 버튼 추가

* fix: 작성 완료 후 상세 페이지로 replace하며 이동
  • Loading branch information
leeminhee119 authored Dec 1, 2023
1 parent 1436af2 commit 486228f
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Flex } from '@chakra-ui/react';
import React from 'react';
import { useParams } from 'react-router-dom';
import { useNavigate, useParams } from 'react-router-dom';
import { Button } from '~/components/atoms/Button';
import { ResumeBasicInput } from '~/components/organisms/ResumeBasicInput';
import { ActivityForm } from '~/components/organisms/ResumeCategoryActivity';
import { AwardForm } from '~/components/organisms/ResumeCategoryAwards';
Expand All @@ -17,6 +18,7 @@ import {
AwardDetails,
ActivityDetails,
} from '~/components/organisms/ResumeDetails';
import { appPaths } from '~/config/paths';
import useUser from '~/hooks/useUser';
import { useGetResumeActivities } from '~/queries/resume/details/useGetResumeActivities';
import { useGetResumeAward } from '~/queries/resume/details/useGetResumeAward';
Expand All @@ -39,6 +41,7 @@ const EditResumeTemplate = () => {
const resumeAuthorId = basicInfo.ownerInfo?.id;
const { user } = useUser();
const isCurrentUser = resumeAuthorId === user?.id;
const navigate = useNavigate();

return (
<Flex
Expand Down Expand Up @@ -107,6 +110,13 @@ const EditResumeTemplate = () => {
isCurrentUser={isCurrentUser}
/>
</CategoryContainer>
<Button
alignSelf={'end'}
size={'md'}
onClick={() => navigate(appPaths.resumeDetail(parseInt(resumeId)), { replace: true })}
>
작성 완료
</Button>
</Flex>
);
};
Expand Down

0 comments on commit 486228f

Please sign in to comment.