diff --git a/deundeun/src/app.jsx b/deundeun/src/app.jsx index fec4639..ccf8b03 100644 --- a/deundeun/src/app.jsx +++ b/deundeun/src/app.jsx @@ -24,6 +24,7 @@ import ApplySuccessPage from 'pages/ApplySuccessPage/index'; import RecruitSuccessPage from 'pages/RecruitSuccessPage/index'; import MyApplyPage from 'pages/MyApplyPage/index'; import ApplicationOverviewPage from 'pages/ApplicationOverviewPage/index'; +import ApplicationModifyPage from 'pages/ApplicationModifyPage/index'; const ClubHomePage = loadable(() => import('pages/ClubHomePage')); const CategoryITPage = loadable(() => import('pages/CategoryITPage')); @@ -130,6 +131,13 @@ const App = () => { + + + + + + + {/* diff --git a/deundeun/src/components/ApplicationFormCard/index.jsx b/deundeun/src/components/ApplicationFormCard/index.jsx index 02a9c20..72bea8c 100644 --- a/deundeun/src/components/ApplicationFormCard/index.jsx +++ b/deundeun/src/components/ApplicationFormCard/index.jsx @@ -13,6 +13,10 @@ const ApplicationFormCard = ({ id, title, clubName, onDeleteApplication }) => { [history, clubName, id] ); + const onModify = (e) => { + history.push(`/application/${clubName}/${id}/modify`); + }; + return ( // @@ -22,7 +26,9 @@ const ApplicationFormCard = ({ id, title, clubName, onDeleteApplication }) => { {clubName} - + diff --git a/deundeun/src/pages/ApplicationManagePage/index.jsx b/deundeun/src/pages/ApplicationManagePage/index.jsx index fd51506..313d222 100644 --- a/deundeun/src/pages/ApplicationManagePage/index.jsx +++ b/deundeun/src/pages/ApplicationManagePage/index.jsx @@ -83,6 +83,9 @@ const ApplicationManagePage = ({ setAddNewForm }) => { )} + {/* + + */} { + const { clubName, id } = useParams(); + const [questionList, setQuestionList] = useState(null); + const [loading, setLoading] = useState(true); + const [title, setTitle] = useState(''); + + useEffect(() => { + axios({ + method: 'get', + url: `${API_BASE_URL}/clubs/${clubName}/forms/${id}`, + headers: { + Authorization: 'Bearer ' + localStorage.getItem(ACCESS_TOKEN) + } + }).then((res) => { + setTitle(res.data.title); + setQuestionList(res.data.recruitQuestionResponseDtos); + setLoading(false); + }); + }, []); + + return ( + // + <> + {!loading ? ( + <> + + +
지원서 수정하기
+ 제목 + + 질문 + + 지원서 수정하기 +
+