Skip to content

Commit

Permalink
fix: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed May 13, 2024
1 parent d26b9ec commit 23e10e1
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/signup/JobPosition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | null>(null);
const [initialPosition, setInitialPosition] = useState<string>(selectedJob);

Expand Down
3 changes: 1 addition & 2 deletions src/components/signup/PhoneCertification.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/components/signup/terms/TermsItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Dispatch, MouseEvent } from 'react';

/* eslint-disable no-unused-vars */
interface TermsItemProps {
title: string;
description: string;
Expand Down
5 changes: 4 additions & 1 deletion src/components/signup/terms/TermsModal.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/components/signup/terms/TermsTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { MouseEvent } from 'react';
//
/* eslint-disable no-unused-vars */
interface TermsTitleProps {
checked: boolean;
onChange: (e: MouseEvent<HTMLElement>, checked: boolean) => void;
Expand Down
66 changes: 66 additions & 0 deletions src/constant/jobPosition.ts
Original file line number Diff line number Diff line change
@@ -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'
}
];

0 comments on commit 23e10e1

Please sign in to comment.