-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 컴포넌트 이름과 일치하도록 파일 이름 변경 * refactor: 고용주 마이페이지에 사인등록 버튼 추가 및 디자인 변경 * feat: 고용주 마이페이지의 사인 등록 버튼 클릭 시 사인 등록 페이지로 이동 기능 추가 * feat: 회사 목록 로딩 중 Spinner 추가 및 위치 조정 * feat: 공고글 목록 로딩 중 Spinner 추가 * refactor: ContractModal의 버튼들을 ModalButtons로 분리 * feat: 계약 팝업창 확인 버튼 클릭 시 근로계약서 페이지로 이동 기능 추가
- Loading branch information
Showing
51 changed files
with
283 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { APIPath } from '@/apis/apiPath'; | ||
import { foreigner } from '@/features/applicants/ApplicantList/ContractModal/index.mock'; | ||
import { foreigner } from '@/features/applicants/ApplicantList/ContractModal/ContractModal.mock'; | ||
import { http, HttpResponse } from 'msw'; | ||
|
||
export const foreignerMockHandler = [http.get(APIPath.getForeigner, () => HttpResponse.json(foreigner))]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { APIPath } from '@/apis/apiPath'; | ||
import { applicantList } from '@/pages/applicants/index.mock'; | ||
import { applicantList } from '@/pages/applicants/Applicants.mock'; | ||
import { http, HttpResponse } from 'msw'; | ||
|
||
export const myApplicantsMockHandler = [http.get(APIPath.getMyApplicants, () => HttpResponse.json(applicantList))]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { APIPath } from '@/apis/apiPath'; | ||
import { companyList } from '@/pages/myAccount/employer/index.mock'; | ||
import { companyList } from '@/pages/myPage/employer/EmployerMyPage.mock'; | ||
import { http, HttpResponse } from 'msw'; | ||
|
||
export const myCompaniesMockHandler = [http.get(APIPath.getMyCompanies, () => HttpResponse.json(companyList))]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...atures/applicants/ApplicantList/index.tsx → ...pplicants/ApplicantList/ApplicantList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...s/ApplicantList/ApplicantsTable/index.tsx → ...tList/ApplicantsTable/ApplicantsTable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
src/features/applicants/ApplicantList/ContractModal/ContractModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Modal } from '@/components/common'; | ||
import ModalText from './ModalText/ModalText'; | ||
import { useGetForeigner } from '@/apis/applicants/hooks/useGetForeigner'; | ||
import ModalButtons from './ModalButtons/ModalButtons'; | ||
|
||
interface ContractModalProps { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
userId: number; | ||
} | ||
|
||
export default function ContractModal({ isOpen, onClose, userId }: ContractModalProps) { | ||
const { data: foreigner } = useGetForeigner(userId); | ||
|
||
return ( | ||
<> | ||
{isOpen && foreigner && ( | ||
<Modal | ||
textChildren={ | ||
<ModalText foreignerIdNumber={foreigner.foreignerIdNumber} visaGenerateDate={foreigner.visaGenerateDate} /> | ||
} | ||
buttonChildren={<ModalButtons onClose={onClose} />} | ||
onClose={onClose} | ||
style={{ padding: '15px' }} | ||
/> | ||
)} | ||
</> | ||
); | ||
} |
4 changes: 0 additions & 4 deletions
4
...plicantList/ContractModal/index.styles.ts → ...Modal/ModalButtons/ModalButtons.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/features/applicants/ApplicantList/ContractModal/ModalButtons/ModalButtons.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Button, Flex, Icon, Typo } from '@/components/common'; | ||
import { buttonTextStyle, customButtonStyle } from './ModalButtons.styles'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import ROUTE_PATH from '@/routes/path'; | ||
|
||
interface ModalButtonsProps { | ||
onClose: () => void; | ||
} | ||
|
||
export default function ModalButtons({ onClose }: ModalButtonsProps) { | ||
const navigate = useNavigate(); | ||
|
||
const handleConfirmClick = () => { | ||
navigate(ROUTE_PATH.CONTRACT.EMPLOYER); | ||
}; | ||
|
||
return ( | ||
<Flex justifyContent="space-between"> | ||
<Button onClick={onClose}>취소</Button> | ||
<Button onClick={handleConfirmClick} css={customButtonStyle}> | ||
<Flex gap={{ x: '15px' }}> | ||
<Typo size="16px" style={buttonTextStyle}> | ||
확인하였습니다. | ||
</Typo> | ||
<Icon.Arrow.RightWhite /> | ||
</Flex> | ||
</Button> | ||
</Flex> | ||
); | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...antList/ContractModal/ModalText/index.tsx → ...ist/ContractModal/ModalText/ModalText.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
src/features/applicants/ApplicantList/ContractModal/index.tsx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...nies/CompanyList/CompaniesTable/index.tsx → ...anyList/CompaniesTable/CompaniesTable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/features/companies/CompanyList/index.tsx → ...res/companies/CompanyList/CompanyList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/recruitments/RecruitmentList/index.tsx → ...ments/RecruitmentList/RecruitmentList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...cruitmentList/RecruitmentsTable/index.tsx → ...t/RecruitmentsTable/RecruitmentsTable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/features/visaRegistration/index.tsx → ...res/registerVisa/VisaRegistrationForm.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/pages/applicants/index.stories.tsx → src/pages/applicants/Applicants.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
export const spinnerFlexStyle = css` | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.