From 59c52ec817acfc16a42d6074ea9cda3dfaecf27f Mon Sep 17 00:00:00 2001 From: KimJi-An Date: Fri, 1 Nov 2024 20:53:36 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EC=9D=B4=EC=A0=84=20merge=EB=90=9C?= =?UTF-8?q?=20=EC=BD=94=EB=93=9C=EC=97=90=EC=84=9C=20=EB=B0=9C=EC=83=9D?= =?UTF-8?q?=ED=95=9C=20=EC=98=A4=EB=A5=98=20=EB=B0=8F=20=EC=9E=98=EB=AA=BB?= =?UTF-8?q?=EB=90=9C=20=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 145 +++++++++--------- src/assets/images/profile-image.svg | 4 - .../ApplicantsTable/index.styles.ts | 37 ----- .../ApplicantList/ApplicantsTable/index.tsx | 58 ------- .../ContractModal/ModalText/index.styles.ts | 13 -- .../ContractModal/ModalText/index.tsx | 44 ------ .../ApplicantList/ContractModal/index.mock.ts | 5 - .../ContractModal/index.styles.ts | 15 -- .../ApplicantList/ContractModal/index.tsx | 39 ----- .../applicants/ApplicantList/index.tsx | 23 --- .../companies/CompanyInfo/index.styles.ts | 46 ------ src/features/companies/CompanyInfo/index.tsx | 32 ---- .../CompaniesTable/index.styles.ts | 26 ---- .../CompanyList/CompaniesTable/index.tsx | 45 ------ src/features/companies/CompanyList/index.tsx | 23 --- src/features/layout/Header/index.stories.tsx | 3 +- src/features/layout/index.tsx | 8 +- .../RecruitmentInfo/index.styles.ts | 93 ----------- .../recruitments/RecruitmentInfo/index.tsx | 50 ------ .../RecruitmentsTable/index.styles.ts | 47 ------ .../RecruitmentsTable/index.tsx | 46 ------ .../recruitments/RecruitmentList/index.tsx | 23 --- .../registerVisa/VisaRegistrationForm.tsx | 8 - src/features/visaRegistration/index.styles.ts | 41 ----- src/features/visaRegistration/index.tsx | 95 ------------ .../validateForeignerNumber.ts | 4 - src/pages/applicants/index.mock.ts | 28 ---- src/pages/applicants/index.stories.tsx | 14 -- src/pages/applicants/index.tsx | 31 ---- .../myPage/EmployeeMyPage.stories.tsx | 14 -- src/pages/employee/myPage/EmployeeMyPage.tsx | 55 ------- src/pages/employee/myPage/data/index.mock.ts | 36 ----- src/pages/myAccount/employer/index.mock.ts | 20 --- src/pages/myAccount/employer/index.styles.ts | 30 ---- src/pages/myAccount/employer/index.tsx | 22 --- src/pages/myCompany/index.mock.ts | 42 ----- src/pages/myCompany/index.stories.tsx | 14 -- src/pages/myCompany/index.styles.ts | 55 ------- src/pages/myCompany/index.tsx | 39 ----- .../employer/EmployerMyPage.stories.tsx | 2 +- .../recruit/stories/RecruitCard.stories.tsx | 2 +- src/pages/visaRegistration/index.styles.ts | 37 ----- src/pages/visaRegistration/index.tsx | 27 ---- src/routes/path.ts | 2 +- 44 files changed, 80 insertions(+), 1363 deletions(-) delete mode 100644 src/assets/images/profile-image.svg delete mode 100644 src/features/applicants/ApplicantList/ApplicantsTable/index.styles.ts delete mode 100644 src/features/applicants/ApplicantList/ApplicantsTable/index.tsx delete mode 100644 src/features/applicants/ApplicantList/ContractModal/ModalText/index.styles.ts delete mode 100644 src/features/applicants/ApplicantList/ContractModal/ModalText/index.tsx delete mode 100644 src/features/applicants/ApplicantList/ContractModal/index.mock.ts delete mode 100644 src/features/applicants/ApplicantList/ContractModal/index.styles.ts delete mode 100644 src/features/applicants/ApplicantList/ContractModal/index.tsx delete mode 100644 src/features/applicants/ApplicantList/index.tsx delete mode 100644 src/features/companies/CompanyInfo/index.styles.ts delete mode 100644 src/features/companies/CompanyInfo/index.tsx delete mode 100644 src/features/companies/CompanyList/CompaniesTable/index.styles.ts delete mode 100644 src/features/companies/CompanyList/CompaniesTable/index.tsx delete mode 100644 src/features/companies/CompanyList/index.tsx delete mode 100644 src/features/recruitments/RecruitmentInfo/index.styles.ts delete mode 100644 src/features/recruitments/RecruitmentInfo/index.tsx delete mode 100644 src/features/recruitments/RecruitmentList/RecruitmentsTable/index.styles.ts delete mode 100644 src/features/recruitments/RecruitmentList/RecruitmentsTable/index.tsx delete mode 100644 src/features/recruitments/RecruitmentList/index.tsx delete mode 100644 src/features/visaRegistration/index.styles.ts delete mode 100644 src/features/visaRegistration/index.tsx delete mode 100644 src/features/visaRegistration/validateForeignerNumber.ts delete mode 100644 src/pages/applicants/index.mock.ts delete mode 100644 src/pages/applicants/index.stories.tsx delete mode 100644 src/pages/applicants/index.tsx delete mode 100644 src/pages/employee/myPage/EmployeeMyPage.stories.tsx delete mode 100644 src/pages/employee/myPage/EmployeeMyPage.tsx delete mode 100644 src/pages/employee/myPage/data/index.mock.ts delete mode 100644 src/pages/myAccount/employer/index.mock.ts delete mode 100644 src/pages/myAccount/employer/index.styles.ts delete mode 100644 src/pages/myAccount/employer/index.tsx delete mode 100644 src/pages/myCompany/index.mock.ts delete mode 100644 src/pages/myCompany/index.stories.tsx delete mode 100644 src/pages/myCompany/index.styles.ts delete mode 100644 src/pages/myCompany/index.tsx delete mode 100644 src/pages/visaRegistration/index.styles.ts delete mode 100644 src/pages/visaRegistration/index.tsx diff --git a/package-lock.json b/package-lock.json index 08dad60..21a752a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,9 @@ "@loadable/component": "^5.16.4", "@react-oauth/google": "^0.12.1", "@tanstack/react-query": "^5.56.2", + "@types/react-signature-canvas": "^1.0.6", + "axios": "^1.7.7", + "buffer": "^6.0.3", "csstype": "^3.1.3", "jquery": "^3.7.1", "react": "^18.3.1", @@ -1485,6 +1488,27 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@loadable/component": { + "version": "5.16.4", + "resolved": "https://registry.npmjs.org/@loadable/component/-/component-5.16.4.tgz", + "integrity": "sha512-fJWxx9b5WHX90QKmizo9B+es2so8DnBthI1mbflwCoOyvzEwxiZ/SVDCTtXEnHG72/kGBdzr297SSIekYtzSOQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.18", + "hoist-non-react-statics": "^3.3.1", + "react-is": "^16.12.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + }, + "peerDependencies": { + "react": "^16.3.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/@mdx-js/react": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-3.1.0.tgz", @@ -1584,16 +1608,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@react-oauth/google": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/@react-oauth/google/-/google-0.12.1.tgz", - "integrity": "sha512-qagsy22t+7UdkYAiT5ZhfM4StXi9PPNvw0zuwNmabrWyMKddczMtBIOARflbaIj+wHiQjnMAsZmzsUYuXeyoSg==", - "license": "MIT", - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, "node_modules/@react-oauth/google": { "version": "0.12.1", "resolved": "https://registry.npmjs.org/@react-oauth/google/-/google-0.12.1.tgz", @@ -3030,16 +3044,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/loadable__component": { - "version": "5.13.9", - "resolved": "https://registry.npmjs.org/@types/loadable__component/-/loadable__component-5.13.9.tgz", - "integrity": "sha512-QWOtIkwZqHNdQj3nixQ8oyihQiTMKZLk/DNuvNxMSbTfxf47w+kqcbnxlUeBgAxdOtW0Dh48dTAIp83iJKtnrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/react": "*" - } - }, "node_modules/@types/loadable__component": { "version": "5.13.9", "resolved": "https://registry.npmjs.org/@types/loadable__component/-/loadable__component-5.13.9.tgz", @@ -3707,6 +3711,12 @@ "node": ">=4" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, "node_modules/available-typed-arrays": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", @@ -3723,6 +3733,17 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/axios": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", + "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/babel-plugin-macros": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", @@ -4202,18 +4223,6 @@ "dev": true, "license": "MIT" }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -4391,6 +4400,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -5407,26 +5426,6 @@ "dev": true, "license": "ISC" }, - "node_modules/follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "license": "MIT", - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, "node_modules/follow-redirects": { "version": "1.15.9", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", @@ -5456,6 +5455,20 @@ "is-callable": "^1.1.3" } }, + "node_modules/form-data": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -6786,7 +6799,6 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, "engines": { "node": ">= 0.6" } @@ -6795,7 +6807,6 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, "dependencies": { "mime-db": "1.52.0" }, @@ -6916,10 +6927,10 @@ } } }, - "node_modules/msw/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/msw-storybook-addon": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/msw-storybook-addon/-/msw-storybook-addon-2.0.3.tgz", + "integrity": "sha512-CzHmGO32JeOPnyUnRWnB0PFTXCY1HKfHiEB/6fYoUYiFm2NYosLjzs9aBd3XJUryYEN0avJqMNh7nCRDxE5JjQ==", "dev": true, "license": "MIT", "dependencies": { @@ -7541,6 +7552,12 @@ "node": ">= 0.10" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, "node_modules/psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", @@ -7735,18 +7752,6 @@ "dev": true, "license": "MIT" }, - "node_modules/react-error-boundary": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.1.2.tgz", - "integrity": "sha512-GQDxZ5Jd+Aq/qUxbCm1UtzmL/s++V7zKgE8yMktJiCQXCCFZnMZh9ng+6/Ne6PjNSXH0L9CjeOEREfRnq6Duag==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.12.5" - }, - "peerDependencies": { - "react": ">=16.13.1" - } - }, "node_modules/react-error-boundary": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.1.2.tgz", diff --git a/src/assets/images/profile-image.svg b/src/assets/images/profile-image.svg deleted file mode 100644 index 3e57953..0000000 --- a/src/assets/images/profile-image.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/features/applicants/ApplicantList/ApplicantsTable/index.styles.ts b/src/features/applicants/ApplicantList/ApplicantsTable/index.styles.ts deleted file mode 100644 index 41faa55..0000000 --- a/src/features/applicants/ApplicantList/ApplicantsTable/index.styles.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { responsiveStyle } from '@/utils/responsive'; -import { css } from '@emotion/react'; - -export const buttonsCellStyle = css` - ${responsiveStyle({ - default: { - width: '600px', - }, - tablet: { - width: '280px', - }, - mobile: { - width: '200px', - }, - })} -`; - -export const buttonGroupStyle = css` - ${responsiveStyle({ - tablet: { - flexDirection: 'column', - alignItems: 'stretch', - gap: '10px', - }, - })} -`; - -export const buttonStyle = css` - ${responsiveStyle({ - default: { - whiteSpace: 'nowrap', - }, - mobile: { - fontSize: '15px', - }, - })} -`; diff --git a/src/features/applicants/ApplicantList/ApplicantsTable/index.tsx b/src/features/applicants/ApplicantList/ApplicantsTable/index.tsx deleted file mode 100644 index 945bedc..0000000 --- a/src/features/applicants/ApplicantList/ApplicantsTable/index.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import { Button, Flex, List, Table, Td, Th } from '@/components/common'; -import { useState } from 'react'; -import ContractModal from '../ContractModal'; -import { ApplicantData } from '@/types'; -import { buttonGroupStyle, buttonsCellStyle, buttonStyle } from './index.styles'; - -type Props = { - applicantList: ApplicantData[]; -}; - -export default function ApplicantsTable({ applicantList }: Props) { - const [isModalOpen, setIsModalOpen] = useState(false); - - const handleOpenModal = () => { - setIsModalOpen(true); - }; - - const handleCloseModal = () => { - setIsModalOpen(false); - }; - - return ( - <> - - - - - - - - - - - ( - - - - - - - )} - /> - -
이름국적한국어 실력
{applicant.name}{applicant.applicantNation}{applicant.korean} - - - - - -
- - - ); -} diff --git a/src/features/applicants/ApplicantList/ContractModal/ModalText/index.styles.ts b/src/features/applicants/ApplicantList/ContractModal/ModalText/index.styles.ts deleted file mode 100644 index 5966ad7..0000000 --- a/src/features/applicants/ApplicantList/ContractModal/ModalText/index.styles.ts +++ /dev/null @@ -1,13 +0,0 @@ -export const titleStyle = { - fontWeight: 'bold', - marginBottom: '20px', -}; - -export const paragraphStyle = { - marginBottom: '20px', -}; - -export const headingStyle = { - ...titleStyle, - marginTop: '20px', -}; diff --git a/src/features/applicants/ApplicantList/ContractModal/ModalText/index.tsx b/src/features/applicants/ApplicantList/ContractModal/ModalText/index.tsx deleted file mode 100644 index 6b8dcce..0000000 --- a/src/features/applicants/ApplicantList/ContractModal/ModalText/index.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import { palettes } from '@/assets/styles/global/palettes'; -import { ForeignerData } from '@/types'; -import { Typo } from '@/components/common'; -import { headingStyle, paragraphStyle, titleStyle } from './index.styles'; - -type Props = Pick; - -export default function ModalText({ foreignerIdNumber, visaGenerateDate }: Props) { - return ( - <> - - ✅ 고용주님께 드리는 주의사항 - - - 불법 체류자를 고용할 시 최대 200만원의 범칙금이 부과될 수 있습니다. - -
- - 지원자 정보 - - - 외국인 등록 번호 : {foreignerIdNumber} -
- 비자 발급 일자 : {visaGenerateDate} -
-
이 지원자의 정보를 활용하여  - - 하이코리아 - - 에서 지원자에 대한 -
- 불법 체류 여부를 검증할 수 있습니다. -
-
- 안전한 고용을 위해 확인 후 진행하는 것을 권장합니다. -
- - ); -} diff --git a/src/features/applicants/ApplicantList/ContractModal/index.mock.ts b/src/features/applicants/ApplicantList/ContractModal/index.mock.ts deleted file mode 100644 index 8093bf3..0000000 --- a/src/features/applicants/ApplicantList/ContractModal/index.mock.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const foreigner = { - foreignerIdNumber: '123456-1234567', - visaGenerateDate: '2000-00-00', - visaExpiryDate: '2000-00-00', -}; diff --git a/src/features/applicants/ApplicantList/ContractModal/index.styles.ts b/src/features/applicants/ApplicantList/ContractModal/index.styles.ts deleted file mode 100644 index 42599dd..0000000 --- a/src/features/applicants/ApplicantList/ContractModal/index.styles.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { palettes } from '@/assets/styles/global/palettes'; -import { css } from '@emotion/react'; - -export const modalStyle = { - padding: '15px', -}; - -export const customButtonStyle = css` - background-color: ${palettes.blue}; - color: ${palettes.white}; -`; - -export const buttonTextStyle = { - color: `${palettes.white}`, -}; diff --git a/src/features/applicants/ApplicantList/ContractModal/index.tsx b/src/features/applicants/ApplicantList/ContractModal/index.tsx deleted file mode 100644 index 0afbe7b..0000000 --- a/src/features/applicants/ApplicantList/ContractModal/index.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { Button, Flex, Icon, Modal, Typo } from '@/components/common'; -import ModalText from './ModalText'; -import { foreigner } from './index.mock'; -import { buttonTextStyle, customButtonStyle, modalStyle } from './index.styles'; - -interface ContractModalProps { - isOpen: boolean; - onClose: () => void; -} - -export default function ContractModal({ isOpen, onClose }: ContractModalProps) { - return ( - <> - {isOpen && ( - - } - buttonChildren={ - - - - - } - /* onClose 부분 추후 수정 예정 */ - onClose={onClose} - style={modalStyle} - /> - )} - - ); -} diff --git a/src/features/applicants/ApplicantList/index.tsx b/src/features/applicants/ApplicantList/index.tsx deleted file mode 100644 index a355b49..0000000 --- a/src/features/applicants/ApplicantList/index.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { Flex, Typo } from '@/components/common'; -import ApplicantsTable from './ApplicantsTable'; -import { ApplicantData } from '@/types'; - -type Props = { - applicantList: ApplicantData[]; -}; - -export default function ApplicantList({ applicantList }: Props) { - return ( - - - - 지원자 목록 - - - 총 {applicantList.length}건 - - - - - ); -} diff --git a/src/features/companies/CompanyInfo/index.styles.ts b/src/features/companies/CompanyInfo/index.styles.ts deleted file mode 100644 index f6f9fc0..0000000 --- a/src/features/companies/CompanyInfo/index.styles.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { responsiveStyle } from '@/utils/responsive'; -import { css } from '@emotion/react'; - -export const infoWrapperStyle = css` - ${responsiveStyle({ - default: { - maxWidth: '60%', - flexDirection: 'column', - justifyContent: 'space-between', - gap: '15px', - }, - tablet: { - alignItems: 'flex-start', - margin: '10px 0 20px 0', - width: '100%', - padding: '0 40px', - }, - mobile: { - padding: '0', - }, - })} -`; - -export const companyNameStyle = { - fontWeight: 'bold', -}; - -export const infoStyle = css` - ${responsiveStyle({ - default: { - alignItems: 'center', - gap: '30px', - }, - tablet: { - flexDirection: 'row', - justifyContent: 'center', - width: '100%', - gap: '10px', - }, - mobile: { - flexDirection: 'column', - alignItems: 'center', - gap: '10px', - }, - })} -`; diff --git a/src/features/companies/CompanyInfo/index.tsx b/src/features/companies/CompanyInfo/index.tsx deleted file mode 100644 index ad90e69..0000000 --- a/src/features/companies/CompanyInfo/index.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import { Flex, Typo } from '@/components/common'; -import { CompanyData } from '@/types'; -import IndustryIcon from '@assets/icons/companyInfo/industry.svg?react'; -import BrandIcon from '@assets/icons/companyInfo/brand.svg?react'; -import RevenueIcon from '@assets/icons/companyInfo/revenue.svg?react'; -import { companyNameStyle, infoStyle, infoWrapperStyle } from './index.styles'; - -type Props = Pick; - -export default function CompanyInfo({ name, industryOccupation, brand, revenuePerYear }: Props) { - return ( - - - {name} - - - - - {industryOccupation} - - - - {brand} - - - - {revenuePerYear} 원 - - - - ); -} diff --git a/src/features/companies/CompanyList/CompaniesTable/index.styles.ts b/src/features/companies/CompanyList/CompaniesTable/index.styles.ts deleted file mode 100644 index 49cddde..0000000 --- a/src/features/companies/CompanyList/CompaniesTable/index.styles.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { responsiveStyle } from '@/utils/responsive'; -import { css } from '@emotion/react'; - -export const cellStyle = css` - ${responsiveStyle({ - tablet: { - flexDirection: 'column', - }, - })} -`; - -export const imageSize = { - width: '277px', - height: '110px', -}; - -export const imageStyle = css` - height: 100%; - - ${responsiveStyle({ - tablet: { - margin: '0 auto', - width: '50%', - }, - })} -`; diff --git a/src/features/companies/CompanyList/CompaniesTable/index.tsx b/src/features/companies/CompanyList/CompaniesTable/index.tsx deleted file mode 100644 index 4e2433a..0000000 --- a/src/features/companies/CompanyList/CompaniesTable/index.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import { Button, Flex, Icon, List, Image, Table, Th, Td } from '@/components/common'; -import { CompanyData } from '@/types'; -import CompanyInfo from '@/features/companies/CompanyInfo'; -import { cellStyle, imageSize, imageStyle } from './index.styles'; - -type Props = { - companyList: CompanyData[]; -}; - -export default function CompaniesTable({ companyList }: Props) { - return ( - - - - - - - - ( - - - - )} - /> - -
회사 정보
- - - - - - - -
- ); -} diff --git a/src/features/companies/CompanyList/index.tsx b/src/features/companies/CompanyList/index.tsx deleted file mode 100644 index 3975af0..0000000 --- a/src/features/companies/CompanyList/index.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { Flex, Typo } from '@/components/common'; -import CompaniesTable from './CompaniesTable'; -import { CompanyData } from '@/types'; - -type Props = { - companyList: CompanyData[]; -}; - -export default function CompanyList({ companyList }: Props) { - return ( - - - - 내 회사 - - - 총 {companyList.length}곳 - - - - - ); -} diff --git a/src/features/layout/Header/index.stories.tsx b/src/features/layout/Header/index.stories.tsx index 8a140e9..82fd609 100644 --- a/src/features/layout/Header/index.stories.tsx +++ b/src/features/layout/Header/index.stories.tsx @@ -1,6 +1,5 @@ import { Meta, StoryObj } from '@storybook/react'; import Header from '.'; -import profileImage from '@assets/images/profile-image.svg'; const meta: Meta = { title: 'features/layout/Header', @@ -13,5 +12,5 @@ export default meta; type Story = StoryObj; export const Default: Story = { - render: () =>
, + render: () =>
, }; diff --git a/src/features/layout/index.tsx b/src/features/layout/index.tsx index 99550f4..3a5b6f5 100644 --- a/src/features/layout/index.tsx +++ b/src/features/layout/index.tsx @@ -1,17 +1,11 @@ import { ReactNode } from 'react'; import Footer from './Footer'; import Header from './Header'; -import profileImage from '@assets/images/profile-image.svg'; - -const initialData = { - type: 'employer', - profileImage: profileImage, -}; export default function Layout({ children }: { children: ReactNode }) { return ( <> -
+
{children}