Skip to content

Commit

Permalink
Fix: semester을 number -\> string으로 타입 수정 , 테이블 데이터들이 모두 select 되지 않는 …
Browse files Browse the repository at this point in the history
…버그 수정(#4)
  • Loading branch information
ohinhyuk committed Aug 22, 2023
1 parent d83f359 commit c03d709
Show file tree
Hide file tree
Showing 6 changed files with 343 additions and 245 deletions.
224 changes: 0 additions & 224 deletions src/components/board/MileageApply.tsx

This file was deleted.

70 changes: 62 additions & 8 deletions src/components/board/MileageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export enum MileageItemBoard {
*/
interface Data {
[MileageItemBoard.CATEGORY]: string;
[MileageItemBoard.SEMESTER]: number;
[MileageItemBoard.SEMESTER]: string;
[MileageItemBoard.ITEM]: string;
[MileageItemBoard.MILEAGE]: number;
[MileageItemBoard.ISVISIBLE]: boolean;
Expand All @@ -55,7 +55,7 @@ export default function MileageItem() {
function createData(
num: number,
category: string,
semester: number,
semester: string,
item: string,
mileage: number,
isVisible: boolean,
Expand Down Expand Up @@ -135,12 +135,66 @@ export default function MileageItem() {
*/

const rows = [
createData(1, '전공 마일리지', 7, '웹 서비스 캠프', 30, 'y', '2023-08-21', <StarIcon />),
createData(2, '비교과 - 연구활동', 6, '웹 서비스 캠프', 30, 'y', '2023-08-21', <StarIcon />),
createData(3, '비교과 - 전공활동', 6, '웹 서비스 캠프', 30, 'y', '2023-08-21', <StarIcon />),
createData(4, '비교과 - 특강참여', 7, '웹 서비스 캠프', 30, 'y', '2023-08-21', <StarIcon />),
createData(5, '비교과 - 학회활동', 6, '웹 서비스 캠프', 30, 'y', '2023-08-21', <StarIcon />),
createData(6, '비교과 - 행사참여', 8, '웹 서비스 캠프', 30, 'y', '2023-08-21', <StarIcon />),
createData(
1,
'전공 마일리지',
'2022-01',
'웹 서비스 캠프',
30,
'y',
'2023-08-21',
<StarIcon />
),
createData(
2,
'비교과 - 연구활동',
'2022-01',
'웹 서비스 캠프',
30,
'y',
'2023-08-21',
<StarIcon />
),
createData(
3,
'비교과 - 전공활동',
'2022-01',
'웹 서비스 캠프',
30,
'y',
'2023-08-21',
<StarIcon />
),
createData(
4,
'비교과 - 특강참여',
'2022-01',
'웹 서비스 캠프',
30,
'y',
'2023-08-21',
<StarIcon />
),
createData(
5,
'비교과 - 학회활동',
'2022-02',
'웹 서비스 캠프',
30,
'y',
'2023-08-21',
<StarIcon />
),
createData(
6,
'비교과 - 행사참여',
'2022-02',
'웹 서비스 캠프',
30,
'y',
'2023-08-21',
<StarIcon />
),
];

return <EnhancedTable rows={rows} headCells={headCells} />;
Expand Down
Loading

0 comments on commit c03d709

Please sign in to comment.