-
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.
Merge pull request #129 from YIMSEBIN/Weekly
Feat/#128 ๊ทผ๋ก์๋ง์ดํ์ด์ง ์์ , ์ ํจ์ฑ๊ฒ์ฌ ๋ฐ ๊ตฌ์ธ๊ธ๋ฑ๋ก API ์๋ฃ
- Loading branch information
Showing
25 changed files
with
401 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { http, HttpResponse } from 'msw'; | ||
import { getMyApplicationPath } from '../hooks/useGetMyApplication'; | ||
import { myRecruitList } from '@/pages/myPage/employee/data/index.mock'; | ||
import { myApplicationList } from '@/apis/employee/mock/myApplicationList.mock'; | ||
|
||
export const EmployeePageMockHandler = [ | ||
http.get(getMyApplicationPath(), () => { | ||
return HttpResponse.json(myRecruitList); | ||
return HttpResponse.json(myApplicationList); | ||
}), | ||
]; |
2 changes: 1 addition & 1 deletion
2
src/pages/myPage/employee/data/index.mock.ts โ ...s/employee/mock/myApplicationList.mock.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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,11 +1,13 @@ | ||
import Bag from '@assets/icons/employeePage/bag.svg?react'; | ||
import Pen from '@assets/icons/employeePage/pen.svg?react'; | ||
import Card from '@assets/icons/employeePage/card.svg?react'; | ||
import Check from '@assets/icons/employeePage/check.svg?react'; | ||
|
||
const EmployeePage = { | ||
Bag, | ||
Pen, | ||
Card, | ||
Check, | ||
}; | ||
|
||
export default EmployeePage; |
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,17 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import Title from '.'; | ||
|
||
const meta: Meta<typeof Title> = { | ||
title: 'common/Title', | ||
component: Title, | ||
tags: ['autodocs'], | ||
args: { | ||
text: '์คํ ๋ฆฌ๋ถ', | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof Title>; | ||
|
||
export const Default: Story = {}; |
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,15 @@ | ||
import Typo from '../Typo'; | ||
|
||
type Props = { | ||
text: string; | ||
size?: string; | ||
}; | ||
|
||
export default function Title({ text, size }: Props) { | ||
const fontSize = size ? size : '24px'; | ||
return ( | ||
<Typo element="h1" size={fontSize} style={{ fontWeight: 'bold', marginBottom: '24px' }}> | ||
{text} | ||
</Typo> | ||
); | ||
} |
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,83 @@ | ||
import styled from '@emotion/styled'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import ROUTE_PATH from '@/routes/path'; | ||
import { Button, Icon, Typo } from '@/components/common'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { useGetRequiredFieldCheck } from '@/apis/recruitmentsDetail/useRequiredFieldCheck'; | ||
import { type RequiredFieldCheckProps } from '@/pages/recruit/RecruitType'; | ||
|
||
export default function ButtonGroup() { | ||
const { t } = useTranslation(); | ||
const navigate = useNavigate(); | ||
const { data: requiredFieldCheck } = useGetRequiredFieldCheck(); | ||
const { resumeExistence, visaExistence, foreignerIdNumberExistence, signExistence }: RequiredFieldCheckProps = | ||
requiredFieldCheck || { | ||
resumeExistence: false, | ||
visaExistence: false, | ||
foreignerIdNumberExistence: false, | ||
signExistence: false, | ||
}; | ||
|
||
return ( | ||
<ColumnSection> | ||
<ActiveButton | ||
design="outlined" | ||
style={{ borderRight: '3px solid #0a65cc' }} | ||
onClick={() => { | ||
navigate(ROUTE_PATH.RESUME); | ||
}} | ||
> | ||
<Typo bold>{resumeExistence ? t('employeeMyPage.UPDATE_RESUME') : t('employeeMyPage.REGISTER_RESUME')}</Typo> | ||
{resumeExistence ? <Icon.EmployeePage.Check /> : <Icon.EmployeePage.Bag />} | ||
</ActiveButton> | ||
<ActiveButton | ||
design="outlined" | ||
style={{ borderRight: '3px solid #0a65cc' }} | ||
onClick={() => { | ||
navigate(ROUTE_PATH.REGISTERSIGN); | ||
}} | ||
> | ||
<Typo bold>{signExistence ? t('employeeMyPage.UPDATE_SIGN') : t('employeeMyPage.REGISTER_SIGN')}</Typo> | ||
{signExistence ? <Icon.EmployeePage.Check /> : <Icon.EmployeePage.Pen />} | ||
</ActiveButton> | ||
<ActiveButton | ||
design="outlined" | ||
onClick={() => { | ||
navigate(ROUTE_PATH.REGISTER_VISA); | ||
}} | ||
> | ||
<Typo bold> | ||
{visaExistence && foreignerIdNumberExistence | ||
? t('employeeMyPage.UPDATE_VISA') | ||
: t('employeeMyPage.REGISTER_VISA')} | ||
</Typo> | ||
{visaExistence && foreignerIdNumberExistence ? <Icon.EmployeePage.Check /> : <Icon.EmployeePage.Card />} | ||
</ActiveButton> | ||
</ColumnSection> | ||
); | ||
} | ||
|
||
const ColumnSection = styled.div` | ||
width: 100%; | ||
display: flex; | ||
`; | ||
|
||
const ActiveButton = styled(Button)` | ||
width: 100%; | ||
height: 60px; | ||
display: flex; | ||
justify-content: space-between; | ||
padding: 10px 20px; | ||
border-radius: 0; | ||
border: 0; | ||
color: #000; | ||
transition: | ||
background-color 0.3s, | ||
background-image 0.3s; // ๋ฐฐ๊ฒฝ ์์๊ณผ ์ด๋ฏธ์ง ์ ๋๋ฉ์ด์ | ||
&:hover { | ||
* { | ||
color: #fff; | ||
} | ||
} | ||
`; |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
import styled from '@emotion/styled'; | ||
import EmployeeProfile from './EmployeeProfile'; | ||
import ButtonGroup from './ButtonGroup'; | ||
|
||
export default function ProfileSection() { | ||
return ( | ||
<Wrapper> | ||
<EmployeeProfile /> | ||
<ButtonGroup /> | ||
</Wrapper> | ||
); | ||
} | ||
|
||
const Wrapper = styled.div` | ||
width: 100%; | ||
direction: column; | ||
align-items: center; | ||
margin-bottom: 52px; | ||
border: 3px solid #0a65cc; | ||
box-shadow: | ||
rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, | ||
rgba(0, 0, 0, 0.3) 0px 3px 7px -3px; | ||
`; |
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
Oops, something went wrong.