File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
components/common/reportCheckBox Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import * as S from './ReportCheckBox.styled' ;
2- import { reasons } from '../../../constants/user/reportConstants' ;
2+ import { REASON_LIST } from '../../../constants/user/reportConstants' ;
33
44interface ReportCheckBoxProps {
55 isNotExist ?: boolean ;
@@ -14,8 +14,8 @@ const ReportCheckBox = ({
1414} : ReportCheckBoxProps ) => {
1515 return (
1616 < S . Container >
17- { reasons . map ( ( reason ) => (
18- < S . CheckItem key = { reason } >
17+ { REASON_LIST . map ( ( reason , index ) => (
18+ < S . CheckItem key = { index } >
1919 < S . CheckInput
2020 type = 'checkbox'
2121 name = 'reason'
Original file line number Diff line number Diff line change 1- export const reasons = [
1+ export const REASON_LIST = [
22 '욕설/비속어' ,
33 '성적내용/음란물' ,
44 '광고/스팸' ,
Original file line number Diff line number Diff line change 11import { useQuery } from '@tanstack/react-query' ;
22import { ReportData } from '../queries/keys' ;
33import { getAllReports } from '../../api/admin/report.api' ;
4- import { SearchType } from '../../models/search' ;
4+ import type { SearchType } from '../../models/search' ;
55
66export const useGetAllReports = ( searchUnit : SearchType ) => {
77 const {
You can’t perform that action at this time.
0 commit comments