Skip to content

Commit

Permalink
🐛 fix: step7에서 서류 상세 페이지 이동할 수 있도록 url 수정 #127
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMirror21 committed Nov 25, 2024
1 parent 5b8f05b commit f669796
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/ApplicationDetail/ApplicationDetailStep7.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { buttonTypeKeys } from '@/constants/components';
import Button from '@/components/Common/Button';
import { useNavigate } from 'react-router-dom';
import { useNavigate, useParams } from 'react-router-dom';
import { ApplicationStepType } from '@/types/application/applicationItem';
import { APPLICATION_STEP } from '@/constants/application';

Expand All @@ -10,6 +10,8 @@ type ApplicationDetailStep7Props = {

const ApplicationDetailStep7 = ({ result }: ApplicationDetailStep7Props) => {
const navigate = useNavigate();
const { id } = useParams();


return (
<section className="flex flex-col items-center gap-[0.75rem] w-full px-[1.5rem] pt-[0.75rem] pb-[3.125rem]">
Expand All @@ -27,7 +29,7 @@ const ApplicationDetailStep7 = ({ result }: ApplicationDetailStep7Props) => {
fontColor="text-[#F4F4F9]"
isBorder={false}
title="Check the application documents"
onClick={() => navigate('/application-documents')}
onClick={() => navigate(`/application-documents/${id}`)}
/>
</section>
);
Expand Down

0 comments on commit f669796

Please sign in to comment.