From 23e10e1ac68f71a5a97eead140578a0a2219ce8f Mon Sep 17 00:00:00 2001 From: eunhak Date: Mon, 13 May 2024 14:31:46 +0900 Subject: [PATCH] fix: lint fix --- src/components/signup/JobPosition.tsx | 2 +- src/components/signup/PhoneCertification.tsx | 3 +- src/components/signup/terms/TermsItem.tsx | 2 +- src/components/signup/terms/TermsModal.tsx | 5 +- src/components/signup/terms/TermsTitle.tsx | 1 + src/constant/jobPosition.ts | 66 ++++++++++++++++++++ 6 files changed, 74 insertions(+), 5 deletions(-) create mode 100644 src/constant/jobPosition.ts diff --git a/src/components/signup/JobPosition.tsx b/src/components/signup/JobPosition.tsx index c918238..cbd1cb8 100644 --- a/src/components/signup/JobPosition.tsx +++ b/src/components/signup/JobPosition.tsx @@ -14,7 +14,7 @@ const JobPosition = ({ setJobModal, setSelectedJob, selectedJob }: JobPositionPr useEffect(() => { window.scrollTo(0, 0); }, []); - // eslint-disable-next-line @typescript-eslint/no-unused-vars + const [selectPosition, setSelectPosition] = useState(null); const [initialPosition, setInitialPosition] = useState(selectedJob); diff --git a/src/components/signup/PhoneCertification.tsx b/src/components/signup/PhoneCertification.tsx index 80f5f19..4486170 100644 --- a/src/components/signup/PhoneCertification.tsx +++ b/src/components/signup/PhoneCertification.tsx @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ import React, { ChangeEvent, useEffect, useRef, useState } from 'react'; import ToBack from '../shared/sign/ToBack'; import { SignupBtnStatus } from '@/models/signupBtnStatus'; @@ -99,7 +98,7 @@ const PhoneCertification = ({ onNext }: PhoneCertificationProps) => { setIsRequest(true); setBtnStatus('THIRD'); } - } catch (error: any) { + } catch (error: string) { const errorResponse = error.response.data; const errorCode = errorResponse.errorCode; const select = signError.find((item) => item.errorCode === errorCode); diff --git a/src/components/signup/terms/TermsItem.tsx b/src/components/signup/terms/TermsItem.tsx index 8be3306..0894447 100644 --- a/src/components/signup/terms/TermsItem.tsx +++ b/src/components/signup/terms/TermsItem.tsx @@ -1,5 +1,5 @@ import React, { Dispatch, MouseEvent } from 'react'; - +/* eslint-disable no-unused-vars */ interface TermsItemProps { title: string; description: string; diff --git a/src/components/signup/terms/TermsModal.tsx b/src/components/signup/terms/TermsModal.tsx index cc6915a..a029270 100644 --- a/src/components/signup/terms/TermsModal.tsx +++ b/src/components/signup/terms/TermsModal.tsx @@ -1,4 +1,7 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable no-unused-vars */ + +/* eslint-disable @typescript-eslint/no-unused-vars */ + import MainContainer from '@/components/shared/MainContainer'; import React, { Dispatch } from 'react'; import { createPortal } from 'react-dom'; diff --git a/src/components/signup/terms/TermsTitle.tsx b/src/components/signup/terms/TermsTitle.tsx index df3e763..2ef1156 100644 --- a/src/components/signup/terms/TermsTitle.tsx +++ b/src/components/signup/terms/TermsTitle.tsx @@ -1,5 +1,6 @@ import React, { MouseEvent } from 'react'; // +/* eslint-disable no-unused-vars */ interface TermsTitleProps { checked: boolean; onChange: (e: MouseEvent, checked: boolean) => void; diff --git a/src/constant/jobPosition.ts b/src/constant/jobPosition.ts new file mode 100644 index 0000000..d5c2ded --- /dev/null +++ b/src/constant/jobPosition.ts @@ -0,0 +1,66 @@ +export const jobPosition = [ + { + title: '대표', + description: 'OWNER' + }, + { + title: '경영/기획/사무', + description: 'OFFICE' + }, + { + title: '회계/재무/IR', + description: 'FINANCE' + }, + { + title: '인사/총무/HR', + description: 'HRD' + }, + { + title: '마케팅/광고/홍보', + description: 'PROMOTION' + }, + { + title: 'IT 개발', + description: 'ITDEV' + }, + { + title: 'IT 서비스 기획', + description: 'ITPLAN' + }, + { + title: '영업/판매', + description: 'SALE' + }, + { + title: '디자인', + description: 'DESIGN' + }, + { + title: '고객서비스/운영/고객지원/상담', + description: 'SERVICE' + }, + { + title: '언론/미디어/콘텐츠', + description: 'CONTENTS' + }, + { + title: '연구개발', + description: 'RND' + }, + { + title: '전문/특수직', + description: 'PROFESSIONAL' + }, + { + title: '유통/MD', + description: 'MD' + }, + { + title: '금융/증권/보험', + description: 'INSURANCE' + }, + { + title: '기타', + description: 'ETC' + } +];