Skip to content

Commit cd6b926

Browse files
committed
chore(member): 불필요한 주석 제거
1 parent 6472867 commit cd6b926

File tree

4 files changed

+2
-24
lines changed

4 files changed

+2
-24
lines changed

apps/member/src/pages/InquiryListPage/components/InquiryListSection.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { useState } from 'react';
33
import { Table } from '@clab-platforms/design-system';
44

55
import MoreButton from '@components/common/MoreButton/MoreButton';
6-
// import Pagination from '@components/common/Pagination/Pagination';
76
import { Section } from '@components/common/Section';
87

8+
import { TABLE_HEAD } from '@constants/head';
99
import { inquiryData } from '@pages/InquiryPage/staticData';
1010

1111
import InquiryTableRow from './InquiryTableRow';
@@ -20,7 +20,6 @@ const InquiryListSection = ({ showAll = false }: InquiryListSectionProps) => {
2020
const handleTableItemClick = (id: number) => {
2121
setCurrentOpenItemIndex(id);
2222
};
23-
// showAll 이 false면 최근 5개만 slice
2423
inquiryData.sort((a, b) => b.id - a.id);
2524
const displayData = showAll ? inquiryData : inquiryData.slice(0, 5);
2625

@@ -30,7 +29,7 @@ const InquiryListSection = ({ showAll = false }: InquiryListSectionProps) => {
3029
{!showAll && <MoreButton to="./list">더보기</MoreButton>}
3130
</Section.Header>
3231
<Section.Body>
33-
<Table head={['번호', '제목', '문의자', '문의일', '카테고리 / 상태']}>
32+
<Table head={TABLE_HEAD.INQUIRY_TABLE}>
3433
<colgroup>
3534
<col className="w-2/12" /> {/* 번호 */}
3635
<col className="w-3/12" /> {/* 제목 */}
@@ -48,14 +47,6 @@ const InquiryListSection = ({ showAll = false }: InquiryListSectionProps) => {
4847
></InquiryTableRow>
4948
))}
5049
</Table>
51-
{/* TODO : 페이지네이션 만들기 */}
52-
{/* <Pagination
53-
className="justify-center mt-4"
54-
totalItems={totalItems}
55-
postLimit={size}
56-
onChange={handlePageChange}
57-
page={page}
58-
/> */}
5950
</Section.Body>
6051
</Section>
6152
);

apps/member/src/pages/InquiryListPage/components/InquiryTableRow.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,13 @@ const InquiryTableRow = ({
3939
const { open } = useModal();
4040
const { boardDeleteMutate } = useBoardDeleteMutation();
4141

42-
// isCurrentItemOpen 열려있는 문의 항목 체크
43-
// isBugType 카테고리가 버그인지
44-
// isAdmin 관리자 권한이 있는지
4542
const isCurrentItemOpen = currentOpenItemIndex === data.id;
4643
const isBugType = data.category === SELECT_OPTIONS_INQURIY_TYPE[0].value;
4744
const isAdmin = myProfile.roleLevel >= ROLE_LEVEL.ADMIN;
4845

49-
// 편집 모드 토글 핸들러
5046
const handleEditToggle = () => setIsEdit((prev) => !prev);
5147
const handleAnswerEditToggle = () => setIsAnswerEdit((prev) => !prev);
5248

53-
// 문의 삭제 핸들러
5449
const handleDeleteClick = (id: number) => {
5550
open({
5651
title: MODAL_TITLE.DELETE,
@@ -62,7 +57,6 @@ const InquiryTableRow = ({
6257
});
6358
};
6459

65-
// 오류 이미지 핸들러
6660
const handleImageClick = (imageUrl: string) => {
6761
window.open(imageUrl, '_blank');
6862
};
@@ -112,7 +106,6 @@ const InquiryTableRow = ({
112106
</>
113107
);
114108
};
115-
// 답변 세션 렌더링 함수
116109
const renderAnswerSection = () => {
117110
// 답변 편집 모드인 경우
118111
if (isAnswerEdit) {
@@ -161,7 +154,6 @@ const InquiryTableRow = ({
161154
</div>
162155
);
163156
};
164-
// 클릭으로 확장된 부분 렌더링 함수
165157
const renderExpandedContent = () => {
166158
// 문의 편집 모드인 경우 폼 표시
167159
if (isEdit) {
@@ -182,7 +174,6 @@ const InquiryTableRow = ({
182174
<div className="text-gray-500">{data.title}</div>
183175
<div className="">{data.content}</div>
184176
<div className="flex gap-3">
185-
{/* 오류 이미지 버튼 (오류 타입인 경우만) */}
186177
{isBugType && (
187178
<Button onClick={() => handleErrorImageModalOpen(data.imageUrl!)}>
188179
오류 이미지
@@ -196,7 +187,6 @@ const InquiryTableRow = ({
196187
</Table.Row>
197188
);
198189
};
199-
// 전체 렌더링
200190
return (
201191
<>
202192
<Table.Row

apps/member/src/pages/InquiryPage/components/Accodion.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ import { cn } from '@clab-platforms/utils';
44

55
import DropdownButton from '@components/common/DropdownButton/DropdownButton';
66

7-
// 아코디언 아이템 타입
87
interface AccordionItem {
98
id: string | number;
109
question: string;
1110
answer: string;
1211
}
1312

14-
// 아코디언 Props
1513
interface AccordionProps {
1614
items: AccordionItem[];
1715
className?: string;

apps/member/src/pages/InquiryWritePage/components/InquiryForm.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const InquiryForm = ({
4444
onClose,
4545
}: InquiryFormProps) => {
4646
const { addToast } = useToast();
47-
// TODO : 문의용 작성, 수정 뮤테이트 만들기
4847
const { boardWriteMutate, isPending: boardWriteIsPending } =
4948
useBoardWriteMutation();
5049
const { boardModifyMutate, isPending: boardModifyIsPending } =

0 commit comments

Comments
 (0)