Skip to content

Commit c57ebde

Browse files
authored
refactor: 관리자 지원자, 면접자 페이지 UI 수정 (DASOMFE-34)
* refactor: 더미데이터 추가 및 지원자 목록 수정 (DASOMFE-34) * refactor: 상세정보 UI 수정 (DASOMFE-34) * refactor: 상세정보 UI 수정 (DASOMFE-34) * refactor: 지원자 목록, 면접자 목록 분리 (DASOMFE-34) * refactor: handler함수 분리 (DASOMFE-34) * remove: 더미데이터 및 ManInterviewee.tsx 삭제 * refactor: footer 없애기
1 parent 501e53c commit c57ebde

File tree

8 files changed

+387
-380
lines changed

8 files changed

+387
-380
lines changed

src/App.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
ManNewsPost,
2121
ManNewsEdit,
2222
ManRecruitDate,
23-
ManInterviewee,
2423
UserMain,
2524
Recruit,
2625
CoreMembers,
@@ -62,6 +61,7 @@ function AppContent() {
6261
'/recruit/meeting/submit',
6362
'/somkathon',
6463
'/somkathon/submit',
64+
'/admin/applicants'
6565
] // 푸터만 숨길 페이지
6666

6767
return (
@@ -107,14 +107,6 @@ function AppContent() {
107107
</ProtectedRoute>
108108
}
109109
/>
110-
<Route
111-
path='/admin/applicants/interviewee'
112-
element={
113-
<ProtectedRoute>
114-
<ManInterviewee />
115-
</ProtectedRoute>
116-
}
117-
/>
118110
<Route
119111
path='/admin/date'
120112
element={
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from 'react'
2+
import { AdminApplicantButtonProps } from './types'
3+
4+
const AdminApplicantButton: React.FC<AdminApplicantButtonProps> = ({ label, active, onClick }) => {
5+
return (
6+
<div
7+
className={`cursor-pointer w-28 py-2 rounded-full text-center text-white ${
8+
active ? 'font-pretendardBold bg-mainColor' : 'bg-subGrey3'
9+
}`}
10+
onClick={onClick}
11+
>
12+
{label}
13+
</div>
14+
)
15+
}
16+
17+
export default AdminApplicantButton

src/components/UI/AdminPagination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const AdminPagination: React.FC<PaginationProps> = ({
3232
setPage,
3333
}) => {
3434
return (
35-
<div className='my-6 space-x-4'>
35+
<div className='mt-6 mb-16 space-x-4 '>
3636
<button
3737
className='px-4 py-2 bg-gray-700 text-white rounded-lg disabled:opacity-50'
3838
onClick={() => handlePrevPage(setCurrentPage, setPage, totalPages)}

src/components/UI/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ export interface PaginationProps {
5454
setPage: Dispatch<SetStateAction<number>>
5555
}
5656

57+
export interface AdminApplicantButtonProps {
58+
label: string;
59+
active: boolean;
60+
onClick: () => void;
61+
}
62+
5763
export interface Recruit_InfoBannerProps {
5864
message: string
5965
}

0 commit comments

Comments
 (0)