From 7284add52cbb93f3e7ffd975ca5ab741a5bfe75a Mon Sep 17 00:00:00 2001 From: Jihoo Kim Date: Thu, 3 Aug 2023 04:16:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8B=A0=EA=B3=A0=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/options.ts | 10 +++- src/pages/feed/FeedReportPage.tsx | 4 +- src/pages/report/CommentReportPage.tsx | 83 ++++++++++++++------------ 3 files changed, 57 insertions(+), 40 deletions(-) diff --git a/src/constants/options.ts b/src/constants/options.ts index 71b77b16..a2e5714e 100644 --- a/src/constants/options.ts +++ b/src/constants/options.ts @@ -51,10 +51,18 @@ export const residenceOptions: OptionType[] = [ { value: 17, label: '제주특별자치도' }, ]; -export const reportOptions: OptionType[] = [ +export const reportFeedOption: OptionType[] = [ { value: 1, label: '개인정보 노출 게시물입니다.' }, { value: 2, label: '스팸홍보/도배 게시물 입니다.' }, { value: 3, label: '욕설/혐오/차별적 표현이 포함된 게시물입니다.' }, { value: 4, label: '음란성 또는 청소년에게 부적합한 게시물입니다.' }, { value: 5, label: '불법정보가 포함된 게시물입니다.' }, ]; + +export const reportCommentOption: OptionType[] = [ + { value: 1, label: '개인정보 노출 댓글입니다.' }, + { value: 2, label: '스팸홍보/도배글 입니다.' }, + { value: 3, label: '욕설/혐오/차별적 표현입니다.' }, + { value: 4, label: '음란성 또는 청소년에게 부적합한 댓글입니다.' }, + { value: 5, label: '불법정보가 포함된 댓글입니다.' }, +]; diff --git a/src/pages/feed/FeedReportPage.tsx b/src/pages/feed/FeedReportPage.tsx index aa7bb9e4..cdba883d 100644 --- a/src/pages/feed/FeedReportPage.tsx +++ b/src/pages/feed/FeedReportPage.tsx @@ -8,7 +8,7 @@ import TopAppBar from '@/components/layout/TopAppBar'; import LoadingSpinner from '@/components/ui/LoadingSpinner'; import Button from '@/components/ui/buttons/Button'; import withAuth from '@/components/withAuth'; -import { reportOptions } from '@/constants/options'; +import { reportFeedOption } from '@/constants/options'; import { RouteURL } from '@/constants/route-url'; function FeedPage() { @@ -66,7 +66,7 @@ function FeedPage() {
- {reportOptions.map((option) => ( + {reportFeedOption.map((option) => (