Skip to content

Commit

Permalink
Merge pull request #114 from YIMSEBIN/Weekly
Browse files Browse the repository at this point in the history
Feat: ๊ทผ๋กœ์ž ๋งˆ์ดํŽ˜์ด์ง€ ์ธ์‚ฟ๋ง ์„ค์ • ๋ฐ ์˜ค๋ฅ˜ ์ˆ˜์ •
  • Loading branch information
YIMSEBIN authored Nov 7, 2024
2 parents a87a130 + 97c5ef3 commit 4845f20
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/assets/translator/EmployeeMyPage/employeeMyPageData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ export const employeeMyPageData = {
REGISTER_SIGN: '์‚ฌ์ธ ๋“ฑ๋ก',
REGISTER_VISA: '์™ธ๊ตญ์ธ ๋ฒˆํ˜ธ ๋ฐ ๋น„์ž ๋ฐœ๊ธ‰ ์ผ์ž ๋“ฑ๋ก',
MYRECRUITLIST: '๋‚ด๊ฐ€ ์ง€์›ํ•œ ๊ณต๊ณ ',
GREETING: '๊ตฌ์ง์ž๋‹˜ ์•ˆ๋…•ํ•˜์„ธ์š”!',
},
[Languages.VE]: {
REGISTER_RESUME: 'ฤฤƒng kรฝ hแป“ sฦก',
REGISTER_SIGN: 'ฤฤƒng kรฝ chแปฏ kรฝ',
REGISTER_VISA: 'ฤฤƒng kรฝ sแป‘ ngฦฐแปi nฦฐแป›c ngoร i vร  ngร y cแบฅp visa',
MYRECRUITLIST: 'Cรดng viแป‡c tรดi ฤ‘รฃ แปฉng tuyแปƒn',
GREETING: 'Xin chร o ngฦฐแปi tรฌm viแป‡c!',
},
};
9 changes: 3 additions & 6 deletions src/features/employee/myPage/EmployeeProfile.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Card, Image, Typo } from '@/components/common';
import styled from '@emotion/styled';
import { useTranslation } from 'react-i18next';

export default function EmployeeProfile({
profileImage = 'https://img.freepik.com/free-photo/user-profile-icon-front-side-with-white-background_187299-40010.jpg?t=st=1729752570~exp=1729756170~hmac=4313719023c412dd92883d97ce79956fadf541e11d8cc3a4ef05150f301f5e7f&w=740',
name = 'ํ™๊ธธ๋™',
description = '์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹น',
}) {
const { t } = useTranslation();
return (
<Card
style={{
Expand All @@ -32,10 +32,7 @@ export default function EmployeeProfile({
/>
<TextSection>
<Typo bold color="white" size="20px">
{name}
</Typo>
<Typo color="white" size="16px">
{description}
{t('employeeMyPage.GREETING')}
</Typo>
</TextSection>
</ProfileSection>
Expand Down
28 changes: 25 additions & 3 deletions src/pages/contract/EmployerContract/EmployerContract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default function EmployerContract() {
<InputContainer>
<Input
label={t('contract.WORKING_PLACE')}
name="workingPlace"
value={workingPlace}
onChange={onChange}
style={InputStyle}
Expand All @@ -78,6 +79,7 @@ export default function EmployerContract() {
<InputContainer>
<Input
label={t('contract.RESPONSIBILITIES')}
name="responsibilities"
value={responsibilities}
onChange={onChange}
style={InputStyle}
Expand All @@ -86,27 +88,47 @@ export default function EmployerContract() {
<InputContainer>
<Input
label={t('contract.WORKING_HOURS')}
name="workingHours"
value={workingHours}
onChange={onChange}
style={InputStyle}
></Input>
</InputContainer>
<InputContainer>
<Input label={t('contract.DAY_OFF')} value={dayOff} onChange={onChange} style={InputStyle}></Input>
<Input
label={t('contract.DAY_OFF')}
name="dayOff"
value={dayOff}
onChange={onChange}
style={InputStyle}
></Input>
</InputContainer>
<InputContainer>
<Input label={t('contract.SALARY')} value={salary} onChange={onChange} style={InputStyle}></Input>
<Input
label={t('contract.SALARY')}
name="salary"
value={salary}
onChange={onChange}
style={InputStyle}
></Input>
</InputContainer>
<InputContainer>
<Input
label={t('contract.ANNUAL_PAID_LEAVE')}
name="annualPaidLeave"
value={annualPaidLeave}
onChange={onChange}
style={InputStyle}
></Input>
</InputContainer>
<InputContainer>
<Input label={t('contract.RULE')} value={rule} onChange={onChange} style={InputStyle}></Input>
<Input
label={t('contract.RULE')}
name="rule"
value={rule}
onChange={onChange}
style={InputStyle}
></Input>
</InputContainer>
</InputWrapper>
<Typo element="p" size="16px" style={{ fontWeight: 'bold', marginTop: '24px' }}>
Expand Down
5 changes: 4 additions & 1 deletion src/pages/myPage/employee/EmployeeMyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ import { useGetMyApplication } from '@/apis/employee/hooks/useGetMyApplication';
import { useNavigate } from 'react-router-dom';
import ROUTE_PATH from '@/routes/path';
import { useTranslation } from 'react-i18next';
import { userLocalStorage } from '@/utils/storage';

export default function EmployeeMyPage() {
const { t } = useTranslation();
const { data: myRecruitList } = useGetMyApplication();
const navigate = useNavigate();

const profileImage = userLocalStorage.getUser()?.profileImage;

return (
<Layout>
<InnerContainer style={{ justifyContent: 'center', width: '70%', padding: '60px 0' }}>
<Section>
<EmployeeProfile />
<EmployeeProfile profileImage={profileImage} />
<ColumnSection>
<CardButton
design="outlined"
Expand Down
8 changes: 6 additions & 2 deletions src/pages/registerCompany/RegisterCompany.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function RegisterCompany() {
navigate(ROUTE_PATH.HOME);
},
onError: () => {
// ์ด๋ถ€๋ถ„ ์—๋Ÿฌ์ฒ˜๋ฆฌ ๊ฒฐ์ •ํ•ด์•ผํ•จ.
alert('๊ฐ’์ด ์ •์ƒ์ ์œผ๋กœ ์ €์žฅ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.');
},
});
Expand All @@ -55,6 +54,7 @@ export default function RegisterCompany() {
<InputContainer>
<Input
label={t('registerCompany.LOGOIMAGE')}
name="logoImage"
type="file"
value={logoImage}
onChange={onChange}
Expand All @@ -64,6 +64,7 @@ export default function RegisterCompany() {
<InputContainer>
<Input
label={t('registerCompany.COMPANYNAME')}
name="name"
value={name}
onChange={onChange}
style={InputStyle}
Expand All @@ -72,6 +73,7 @@ export default function RegisterCompany() {
<InputContainer>
<Input
label={t('registerCompany.INDUSTRY_OCCUPATION')}
name="industryOccupation"
value={industryOccupation}
onChange={onChange}
style={InputStyle}
Expand All @@ -80,6 +82,7 @@ export default function RegisterCompany() {
<InputContainer>
<Input
label={t('registerCompany.BRAND')}
name="brand"
value={brand}
onChange={onChange}
style={InputStyle}
Expand All @@ -88,14 +91,15 @@ export default function RegisterCompany() {
<InputContainer>
<Input
label={t('registerCompany.REVENUE_PERYEAR')}
name="revenuePerYear"
value={revenuePerYear}
onChange={onChange}
style={InputStyle}
></Input>
</InputContainer>
</InputWrapper>
<ButtonWrapper>
<Button design="default" onClick={handlePostCompany} style={{}}>
<Button design="default" onClick={handlePostCompany}>
{t('registerCompany.SUBMIT')}
</Button>
</ButtonWrapper>
Expand Down

0 comments on commit 4845f20

Please sign in to comment.