diff --git a/src/components/templates/EditResumeTemplate/EditResumeTemplate.tsx b/src/components/templates/EditResumeTemplate/EditResumeTemplate.tsx index 6c0828cd..dd70f2a9 100644 --- a/src/components/templates/EditResumeTemplate/EditResumeTemplate.tsx +++ b/src/components/templates/EditResumeTemplate/EditResumeTemplate.tsx @@ -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'; @@ -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'; @@ -39,6 +41,7 @@ const EditResumeTemplate = () => { const resumeAuthorId = basicInfo.ownerInfo?.id; const { user } = useUser(); const isCurrentUser = resumeAuthorId === user?.id; + const navigate = useNavigate(); return ( { isCurrentUser={isCurrentUser} /> + ); };