Skip to content

Commit

Permalink
refactor(member): use constant for table head in CalendarTableSection (
Browse files Browse the repository at this point in the history
  • Loading branch information
gwansikk committed May 2, 2024
1 parent 07db4ba commit 9796a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Table } from '@clab/design-system';

import { Section } from '@components/common/Section';

import { TABLE_HEAD } from '@constants/head';
import useModal from '@hooks/common/useModal';
import { useSchedule } from '@hooks/queries';
import { formattedDate, formattedDatePeriod } from '@utils/date';
Expand All @@ -24,7 +25,7 @@ const CalendarTableSection = () => {

return (
<Section>
<Table head={['날짜', '일정명']} className="table-fixed">
<Table head={TABLE_HEAD.CALENDAR_TABLE} className="table-fixed">
{data.items.map(({ id, title, detail, startDate, endDate }) => (
<Table.Row
key={id}
Expand Down
1 change: 1 addition & 0 deletions apps/member/src/constants/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const TABLE_HEAD = {
'기능',
],
CALENDAR_SCHEDULE: ['번호', '제목', '시작일', '종료일', '중요도', '기능'],
CALENDAR_TABLE: ['날짜', '일정'],
} as const;
/**
* 관리자 페이지에서 기능을 나타내는 상수
Expand Down

0 comments on commit 9796a3f

Please sign in to comment.