From 3ce5b377ca4cba448135e9cc5db6bc8b074809e4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 12 Sep 2024 03:05:52 +0000 Subject: [PATCH 1/7] Create draft PR for #659 From bb1aa5f69ed9b771af53418123e3b0be077364bf Mon Sep 17 00:00:00 2001 From: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:55:40 +0900 Subject: [PATCH 2/7] =?UTF-8?q?refactor:=20=EC=95=84=ED=86=A0=EB=AF=B9=20?= =?UTF-8?q?=ED=8C=A8=ED=84=B4=20=EA=B5=AC=EB=B6=84=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EB=94=94=EB=A0=89?= =?UTF-8?q?=ED=86=A0=EB=A6=AC=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../atoms}/ApiErrorBoundary/index.tsx | 0 .../atoms}/ApiErrorBoundary/types.ts | 0 .../atoms}/Button/Button.stories.tsx | 0 .../atoms}/Button/index.tsx | 0 .../{common => _common/atoms}/Button/style.ts | 0 .../atoms}/CheckBox/CheckBox.stories.tsx | 0 .../atoms}/CheckBox/index.tsx | 0 .../atoms}/CheckBox/styles.ts | 0 .../atoms}/ChevronButton/index.tsx | 0 .../atoms}/ChevronButton/style.ts | 0 .../CopyToClipboard.stories.tsx | 0 .../atoms}/CopyToClipboard/index.tsx | 0 .../atoms}/CopyToClipboard/style.ts | 0 .../atoms}/DateInput/DateInput.stories.tsx | 0 .../atoms}/DateInput/index.tsx | 0 .../atoms}/DateInput/style.ts | 0 .../DropdownItem/DropdownItem.stories.tsx | 0 .../atoms}/DropdownItem/index.tsx | 0 .../atoms}/DropdownItem/style.ts | 0 .../atoms}/IconButton/IconButton.stories.tsx | 0 .../atoms}/IconButton/index.tsx | 0 .../atoms}/IconButton/style.ts | 0 .../OpenInNewTab/OpenInNewTab.stories.tsx | 0 .../atoms}/OpenInNewTab/index.tsx | 0 .../atoms}/OpenInNewTab/style.ts | 0 .../QuestionBox/QuestionBox.stories.tsx | 0 .../atoms}/QuestionBox/index.tsx | 0 .../atoms}/QuestionBox/style.ts | 0 .../atoms}/Radio/Radio.stories.tsx | 0 .../{common => _common/atoms}/Radio/index.tsx | 0 .../{common => _common/atoms}/Radio/style.ts | 0 .../atoms}/Spinner/Spinner.stories.tsx | 0 .../atoms}/Spinner/index.tsx | 0 .../atoms}/Spinner/style.ts | 0 .../atoms}/TextEditor/TextEditor.stories.tsx | 0 .../atoms}/TextEditor/index.tsx | 0 .../atoms}/TextEditor/style.css | 0 .../atoms}/Toast/Toast.stories.tsx | 0 .../{common => _common/atoms}/Toast/index.tsx | 0 .../{common => _common/atoms}/Toast/style.ts | 0 .../ToggleSwitch/ToggleSwitch.stories.tsx | 0 .../atoms}/ToggleSwitch/index.tsx | 0 .../atoms}/ToggleSwitch/style.ts | 0 .../Accordion/Accordion.stories.tsx | 0 .../molecules}/Accordion/index.tsx | 2 +- .../molecules}/Accordion/style.ts | 0 .../CheckBoxOption/CheckBoxOption.stories.tsx | 0 .../molecules}/CheckBoxOption/index.tsx | 2 +- .../molecules}/CheckBoxOption/style.ts | 0 .../CheckboxLabelField.stories.tsx | 0 .../molecules}/CheckboxLabelField/index.tsx | 2 +- .../molecules}/CheckboxLabelField/style.ts | 0 .../molecules}/Dropdown/Dropdown.stories.tsx | 0 .../molecules}/Dropdown/index.tsx | 4 +- .../molecules}/Dropdown/style.ts | 0 .../InputField/InputField.stories.tsx | 0 .../molecules}/InputField/index.tsx | 0 .../molecules}/InputField/style.ts | 0 .../PopOverMenu/PopOverMenu.stories.tsx | 0 .../molecules}/PopOverMenu/index.tsx | 2 +- .../molecules}/PopOverMenu/style.ts | 0 .../RadioField/RadioField.stories.tsx | 0 .../molecules}/RadioField/index.tsx | 2 +- .../molecules}/RadioField/style.ts | 0 .../RadioInputOption.stories.tsx | 0 .../molecules}/RadioInputOption/index.tsx | 2 +- .../molecules}/RadioInputOption/style.ts | 0 .../RadioLabelField.stories.tsx | 0 .../molecules}/RadioLabelField/index.tsx | 2 +- .../molecules}/RadioLabelField/style.ts | 0 .../RadioOption/RadioOption.stories.tsx | 0 .../molecules}/RadioOption/index.tsx | 2 +- .../molecules}/RadioOption/style.ts | 0 .../molecules}/Tab/index.tsx | 0 .../molecules}/Tab/style.ts | 0 .../molecules}/Tab/useTab.ts | 0 .../TextField/TextField.stories.tsx | 0 .../molecules}/TextField/index.tsx | 0 .../molecules}/TextField/style.ts | 0 .../appModal/ApplicantBaseInfo/index.tsx | 4 +- .../QuestionSection/index.tsx | 2 +- .../EvaluationAddButton/index.tsx | 2 +- .../EvaluationForm/index.tsx | 8 +-- .../BaseModal/BaseModal.stories.tsx | 2 +- .../{common => appModal}/BaseModal/index.tsx | 0 .../{common => appModal}/BaseModal/styled.ts | 0 .../ModalHeader/index.tsx | 2 +- .../{common => appModal}/ModalHeader/style.ts | 0 frontend/src/components/appModal/index.tsx | 4 +- .../src/components/applyManagement/index.tsx | 2 +- .../dashboard/ApplicantCard/index.tsx | 4 +- .../Apply/QuestionBuilder/index.tsx | 6 +- .../dashboard/DashboardCreate/Apply/index.tsx | 4 +- .../DashboardCreate/Finish/index.tsx | 4 +- .../DashboardCreate/Recruitment/index.tsx | 10 +-- .../DashboardCreate/SharePost/index.tsx | 2 +- .../DashboardSidebar/LogoutButton/index.tsx | 2 +- .../dashboard/DashboardSidebar/index.tsx | 2 +- .../dashboard/ProcessBoard/index.tsx | 2 +- .../PostManageBoard.stories.tsx | 64 +++++++++++++++++++ .../postManagement/PostManageBoard/index.tsx | 8 +-- .../ProcessAddButton/index.tsx | 4 +- .../ProcessAddForm/index.tsx | 6 +- .../ProcessModifyForm/index.tsx | 6 +- .../recruitment/CheckBoxField/index.tsx | 2 +- .../recruitment/RadioInputField/index.tsx | 2 +- .../recruitmentPost/ApplyForm/index.tsx | 6 +- .../recruitmentPost/CustomQuestion/index.tsx | 8 +-- .../RecruitmentPostDetail/index.tsx | 4 +- .../RecruitmentPostTab/index.tsx | 4 +- frontend/src/contexts/ToastContext.tsx | 2 +- frontend/src/pages/ConfirmApply/index.tsx | 2 +- frontend/src/pages/Dashboard/index.tsx | 8 +-- frontend/src/pages/DashboardLayout/index.tsx | 2 +- frontend/src/pages/ErrorPage/index.tsx | 4 +- frontend/src/pages/SignIn/index.tsx | 6 +- frontend/src/pages/SignUp/PasswordInput.tsx | 2 +- frontend/src/pages/SignUp/index.tsx | 6 +- 118 files changed, 146 insertions(+), 82 deletions(-) rename frontend/src/components/{common => _common/atoms}/ApiErrorBoundary/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/ApiErrorBoundary/types.ts (100%) rename frontend/src/components/{common => _common/atoms}/Button/Button.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/Button/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/Button/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/CheckBox/CheckBox.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/CheckBox/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/CheckBox/styles.ts (100%) rename frontend/src/components/{common => _common/atoms}/ChevronButton/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/ChevronButton/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/CopyToClipboard/CopyToClipboard.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/CopyToClipboard/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/CopyToClipboard/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/DateInput/DateInput.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/DateInput/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/DateInput/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/DropdownItem/DropdownItem.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/DropdownItem/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/DropdownItem/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/IconButton/IconButton.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/IconButton/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/IconButton/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/OpenInNewTab/OpenInNewTab.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/OpenInNewTab/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/OpenInNewTab/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/QuestionBox/QuestionBox.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/QuestionBox/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/QuestionBox/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/Radio/Radio.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/Radio/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/Radio/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/Spinner/Spinner.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/Spinner/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/Spinner/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/TextEditor/TextEditor.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/TextEditor/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/TextEditor/style.css (100%) rename frontend/src/components/{common => _common/atoms}/Toast/Toast.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/Toast/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/Toast/style.ts (100%) rename frontend/src/components/{common => _common/atoms}/ToggleSwitch/ToggleSwitch.stories.tsx (100%) rename frontend/src/components/{common => _common/atoms}/ToggleSwitch/index.tsx (100%) rename frontend/src/components/{common => _common/atoms}/ToggleSwitch/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/Accordion/Accordion.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/Accordion/index.tsx (93%) rename frontend/src/components/{common => _common/molecules}/Accordion/style.ts (100%) rename frontend/src/components/{recruitment => _common/molecules}/CheckBoxOption/CheckBoxOption.stories.tsx (100%) rename frontend/src/components/{recruitment => _common/molecules}/CheckBoxOption/index.tsx (94%) rename frontend/src/components/{recruitment => _common/molecules}/CheckBoxOption/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/CheckboxLabelField/CheckboxLabelField.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/CheckboxLabelField/index.tsx (96%) rename frontend/src/components/{common => _common/molecules}/CheckboxLabelField/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/Dropdown/Dropdown.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/Dropdown/index.tsx (93%) rename frontend/src/components/{common => _common/molecules}/Dropdown/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/InputField/InputField.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/InputField/index.tsx (100%) rename frontend/src/components/{common => _common/molecules}/InputField/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/PopOverMenu/PopOverMenu.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/PopOverMenu/index.tsx (93%) rename frontend/src/components/{common => _common/molecules}/PopOverMenu/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/RadioField/RadioField.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/RadioField/index.tsx (100%) rename frontend/src/components/{common => _common/molecules}/RadioField/style.ts (100%) rename frontend/src/components/{recruitment => _common/molecules}/RadioInputOption/RadioInputOption.stories.tsx (100%) rename frontend/src/components/{recruitment => _common/molecules}/RadioInputOption/index.tsx (94%) rename frontend/src/components/{recruitment => _common/molecules}/RadioInputOption/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/RadioLabelField/RadioLabelField.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/RadioLabelField/index.tsx (96%) rename frontend/src/components/{common => _common/molecules}/RadioLabelField/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/RadioOption/RadioOption.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/RadioOption/index.tsx (89%) rename frontend/src/components/{common => _common/molecules}/RadioOption/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/Tab/index.tsx (100%) rename frontend/src/components/{common => _common/molecules}/Tab/style.ts (100%) rename frontend/src/components/{common => _common/molecules}/Tab/useTab.ts (100%) rename frontend/src/components/{common => _common/molecules}/TextField/TextField.stories.tsx (100%) rename frontend/src/components/{common => _common/molecules}/TextField/index.tsx (100%) rename frontend/src/components/{common => _common/molecules}/TextField/style.ts (100%) rename frontend/src/components/{common => appModal}/BaseModal/BaseModal.stories.tsx (95%) rename frontend/src/components/{common => appModal}/BaseModal/index.tsx (100%) rename frontend/src/components/{common => appModal}/BaseModal/styled.ts (100%) rename frontend/src/components/{common => appModal}/ModalHeader/index.tsx (88%) rename frontend/src/components/{common => appModal}/ModalHeader/style.ts (100%) create mode 100644 frontend/src/components/postManagement/PostManageBoard/PostManageBoard.stories.tsx diff --git a/frontend/src/components/common/ApiErrorBoundary/index.tsx b/frontend/src/components/_common/atoms/ApiErrorBoundary/index.tsx similarity index 100% rename from frontend/src/components/common/ApiErrorBoundary/index.tsx rename to frontend/src/components/_common/atoms/ApiErrorBoundary/index.tsx diff --git a/frontend/src/components/common/ApiErrorBoundary/types.ts b/frontend/src/components/_common/atoms/ApiErrorBoundary/types.ts similarity index 100% rename from frontend/src/components/common/ApiErrorBoundary/types.ts rename to frontend/src/components/_common/atoms/ApiErrorBoundary/types.ts diff --git a/frontend/src/components/common/Button/Button.stories.tsx b/frontend/src/components/_common/atoms/Button/Button.stories.tsx similarity index 100% rename from frontend/src/components/common/Button/Button.stories.tsx rename to frontend/src/components/_common/atoms/Button/Button.stories.tsx diff --git a/frontend/src/components/common/Button/index.tsx b/frontend/src/components/_common/atoms/Button/index.tsx similarity index 100% rename from frontend/src/components/common/Button/index.tsx rename to frontend/src/components/_common/atoms/Button/index.tsx diff --git a/frontend/src/components/common/Button/style.ts b/frontend/src/components/_common/atoms/Button/style.ts similarity index 100% rename from frontend/src/components/common/Button/style.ts rename to frontend/src/components/_common/atoms/Button/style.ts diff --git a/frontend/src/components/common/CheckBox/CheckBox.stories.tsx b/frontend/src/components/_common/atoms/CheckBox/CheckBox.stories.tsx similarity index 100% rename from frontend/src/components/common/CheckBox/CheckBox.stories.tsx rename to frontend/src/components/_common/atoms/CheckBox/CheckBox.stories.tsx diff --git a/frontend/src/components/common/CheckBox/index.tsx b/frontend/src/components/_common/atoms/CheckBox/index.tsx similarity index 100% rename from frontend/src/components/common/CheckBox/index.tsx rename to frontend/src/components/_common/atoms/CheckBox/index.tsx diff --git a/frontend/src/components/common/CheckBox/styles.ts b/frontend/src/components/_common/atoms/CheckBox/styles.ts similarity index 100% rename from frontend/src/components/common/CheckBox/styles.ts rename to frontend/src/components/_common/atoms/CheckBox/styles.ts diff --git a/frontend/src/components/common/ChevronButton/index.tsx b/frontend/src/components/_common/atoms/ChevronButton/index.tsx similarity index 100% rename from frontend/src/components/common/ChevronButton/index.tsx rename to frontend/src/components/_common/atoms/ChevronButton/index.tsx diff --git a/frontend/src/components/common/ChevronButton/style.ts b/frontend/src/components/_common/atoms/ChevronButton/style.ts similarity index 100% rename from frontend/src/components/common/ChevronButton/style.ts rename to frontend/src/components/_common/atoms/ChevronButton/style.ts diff --git a/frontend/src/components/common/CopyToClipboard/CopyToClipboard.stories.tsx b/frontend/src/components/_common/atoms/CopyToClipboard/CopyToClipboard.stories.tsx similarity index 100% rename from frontend/src/components/common/CopyToClipboard/CopyToClipboard.stories.tsx rename to frontend/src/components/_common/atoms/CopyToClipboard/CopyToClipboard.stories.tsx diff --git a/frontend/src/components/common/CopyToClipboard/index.tsx b/frontend/src/components/_common/atoms/CopyToClipboard/index.tsx similarity index 100% rename from frontend/src/components/common/CopyToClipboard/index.tsx rename to frontend/src/components/_common/atoms/CopyToClipboard/index.tsx diff --git a/frontend/src/components/common/CopyToClipboard/style.ts b/frontend/src/components/_common/atoms/CopyToClipboard/style.ts similarity index 100% rename from frontend/src/components/common/CopyToClipboard/style.ts rename to frontend/src/components/_common/atoms/CopyToClipboard/style.ts diff --git a/frontend/src/components/common/DateInput/DateInput.stories.tsx b/frontend/src/components/_common/atoms/DateInput/DateInput.stories.tsx similarity index 100% rename from frontend/src/components/common/DateInput/DateInput.stories.tsx rename to frontend/src/components/_common/atoms/DateInput/DateInput.stories.tsx diff --git a/frontend/src/components/common/DateInput/index.tsx b/frontend/src/components/_common/atoms/DateInput/index.tsx similarity index 100% rename from frontend/src/components/common/DateInput/index.tsx rename to frontend/src/components/_common/atoms/DateInput/index.tsx diff --git a/frontend/src/components/common/DateInput/style.ts b/frontend/src/components/_common/atoms/DateInput/style.ts similarity index 100% rename from frontend/src/components/common/DateInput/style.ts rename to frontend/src/components/_common/atoms/DateInput/style.ts diff --git a/frontend/src/components/common/DropdownItem/DropdownItem.stories.tsx b/frontend/src/components/_common/atoms/DropdownItem/DropdownItem.stories.tsx similarity index 100% rename from frontend/src/components/common/DropdownItem/DropdownItem.stories.tsx rename to frontend/src/components/_common/atoms/DropdownItem/DropdownItem.stories.tsx diff --git a/frontend/src/components/common/DropdownItem/index.tsx b/frontend/src/components/_common/atoms/DropdownItem/index.tsx similarity index 100% rename from frontend/src/components/common/DropdownItem/index.tsx rename to frontend/src/components/_common/atoms/DropdownItem/index.tsx diff --git a/frontend/src/components/common/DropdownItem/style.ts b/frontend/src/components/_common/atoms/DropdownItem/style.ts similarity index 100% rename from frontend/src/components/common/DropdownItem/style.ts rename to frontend/src/components/_common/atoms/DropdownItem/style.ts diff --git a/frontend/src/components/common/IconButton/IconButton.stories.tsx b/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx similarity index 100% rename from frontend/src/components/common/IconButton/IconButton.stories.tsx rename to frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx diff --git a/frontend/src/components/common/IconButton/index.tsx b/frontend/src/components/_common/atoms/IconButton/index.tsx similarity index 100% rename from frontend/src/components/common/IconButton/index.tsx rename to frontend/src/components/_common/atoms/IconButton/index.tsx diff --git a/frontend/src/components/common/IconButton/style.ts b/frontend/src/components/_common/atoms/IconButton/style.ts similarity index 100% rename from frontend/src/components/common/IconButton/style.ts rename to frontend/src/components/_common/atoms/IconButton/style.ts diff --git a/frontend/src/components/common/OpenInNewTab/OpenInNewTab.stories.tsx b/frontend/src/components/_common/atoms/OpenInNewTab/OpenInNewTab.stories.tsx similarity index 100% rename from frontend/src/components/common/OpenInNewTab/OpenInNewTab.stories.tsx rename to frontend/src/components/_common/atoms/OpenInNewTab/OpenInNewTab.stories.tsx diff --git a/frontend/src/components/common/OpenInNewTab/index.tsx b/frontend/src/components/_common/atoms/OpenInNewTab/index.tsx similarity index 100% rename from frontend/src/components/common/OpenInNewTab/index.tsx rename to frontend/src/components/_common/atoms/OpenInNewTab/index.tsx diff --git a/frontend/src/components/common/OpenInNewTab/style.ts b/frontend/src/components/_common/atoms/OpenInNewTab/style.ts similarity index 100% rename from frontend/src/components/common/OpenInNewTab/style.ts rename to frontend/src/components/_common/atoms/OpenInNewTab/style.ts diff --git a/frontend/src/components/common/QuestionBox/QuestionBox.stories.tsx b/frontend/src/components/_common/atoms/QuestionBox/QuestionBox.stories.tsx similarity index 100% rename from frontend/src/components/common/QuestionBox/QuestionBox.stories.tsx rename to frontend/src/components/_common/atoms/QuestionBox/QuestionBox.stories.tsx diff --git a/frontend/src/components/common/QuestionBox/index.tsx b/frontend/src/components/_common/atoms/QuestionBox/index.tsx similarity index 100% rename from frontend/src/components/common/QuestionBox/index.tsx rename to frontend/src/components/_common/atoms/QuestionBox/index.tsx diff --git a/frontend/src/components/common/QuestionBox/style.ts b/frontend/src/components/_common/atoms/QuestionBox/style.ts similarity index 100% rename from frontend/src/components/common/QuestionBox/style.ts rename to frontend/src/components/_common/atoms/QuestionBox/style.ts diff --git a/frontend/src/components/common/Radio/Radio.stories.tsx b/frontend/src/components/_common/atoms/Radio/Radio.stories.tsx similarity index 100% rename from frontend/src/components/common/Radio/Radio.stories.tsx rename to frontend/src/components/_common/atoms/Radio/Radio.stories.tsx diff --git a/frontend/src/components/common/Radio/index.tsx b/frontend/src/components/_common/atoms/Radio/index.tsx similarity index 100% rename from frontend/src/components/common/Radio/index.tsx rename to frontend/src/components/_common/atoms/Radio/index.tsx diff --git a/frontend/src/components/common/Radio/style.ts b/frontend/src/components/_common/atoms/Radio/style.ts similarity index 100% rename from frontend/src/components/common/Radio/style.ts rename to frontend/src/components/_common/atoms/Radio/style.ts diff --git a/frontend/src/components/common/Spinner/Spinner.stories.tsx b/frontend/src/components/_common/atoms/Spinner/Spinner.stories.tsx similarity index 100% rename from frontend/src/components/common/Spinner/Spinner.stories.tsx rename to frontend/src/components/_common/atoms/Spinner/Spinner.stories.tsx diff --git a/frontend/src/components/common/Spinner/index.tsx b/frontend/src/components/_common/atoms/Spinner/index.tsx similarity index 100% rename from frontend/src/components/common/Spinner/index.tsx rename to frontend/src/components/_common/atoms/Spinner/index.tsx diff --git a/frontend/src/components/common/Spinner/style.ts b/frontend/src/components/_common/atoms/Spinner/style.ts similarity index 100% rename from frontend/src/components/common/Spinner/style.ts rename to frontend/src/components/_common/atoms/Spinner/style.ts diff --git a/frontend/src/components/common/TextEditor/TextEditor.stories.tsx b/frontend/src/components/_common/atoms/TextEditor/TextEditor.stories.tsx similarity index 100% rename from frontend/src/components/common/TextEditor/TextEditor.stories.tsx rename to frontend/src/components/_common/atoms/TextEditor/TextEditor.stories.tsx diff --git a/frontend/src/components/common/TextEditor/index.tsx b/frontend/src/components/_common/atoms/TextEditor/index.tsx similarity index 100% rename from frontend/src/components/common/TextEditor/index.tsx rename to frontend/src/components/_common/atoms/TextEditor/index.tsx diff --git a/frontend/src/components/common/TextEditor/style.css b/frontend/src/components/_common/atoms/TextEditor/style.css similarity index 100% rename from frontend/src/components/common/TextEditor/style.css rename to frontend/src/components/_common/atoms/TextEditor/style.css diff --git a/frontend/src/components/common/Toast/Toast.stories.tsx b/frontend/src/components/_common/atoms/Toast/Toast.stories.tsx similarity index 100% rename from frontend/src/components/common/Toast/Toast.stories.tsx rename to frontend/src/components/_common/atoms/Toast/Toast.stories.tsx diff --git a/frontend/src/components/common/Toast/index.tsx b/frontend/src/components/_common/atoms/Toast/index.tsx similarity index 100% rename from frontend/src/components/common/Toast/index.tsx rename to frontend/src/components/_common/atoms/Toast/index.tsx diff --git a/frontend/src/components/common/Toast/style.ts b/frontend/src/components/_common/atoms/Toast/style.ts similarity index 100% rename from frontend/src/components/common/Toast/style.ts rename to frontend/src/components/_common/atoms/Toast/style.ts diff --git a/frontend/src/components/common/ToggleSwitch/ToggleSwitch.stories.tsx b/frontend/src/components/_common/atoms/ToggleSwitch/ToggleSwitch.stories.tsx similarity index 100% rename from frontend/src/components/common/ToggleSwitch/ToggleSwitch.stories.tsx rename to frontend/src/components/_common/atoms/ToggleSwitch/ToggleSwitch.stories.tsx diff --git a/frontend/src/components/common/ToggleSwitch/index.tsx b/frontend/src/components/_common/atoms/ToggleSwitch/index.tsx similarity index 100% rename from frontend/src/components/common/ToggleSwitch/index.tsx rename to frontend/src/components/_common/atoms/ToggleSwitch/index.tsx diff --git a/frontend/src/components/common/ToggleSwitch/style.ts b/frontend/src/components/_common/atoms/ToggleSwitch/style.ts similarity index 100% rename from frontend/src/components/common/ToggleSwitch/style.ts rename to frontend/src/components/_common/atoms/ToggleSwitch/style.ts diff --git a/frontend/src/components/common/Accordion/Accordion.stories.tsx b/frontend/src/components/_common/molecules/Accordion/Accordion.stories.tsx similarity index 100% rename from frontend/src/components/common/Accordion/Accordion.stories.tsx rename to frontend/src/components/_common/molecules/Accordion/Accordion.stories.tsx diff --git a/frontend/src/components/common/Accordion/index.tsx b/frontend/src/components/_common/molecules/Accordion/index.tsx similarity index 93% rename from frontend/src/components/common/Accordion/index.tsx rename to frontend/src/components/_common/molecules/Accordion/index.tsx index 1dad73ac7..758597fa8 100644 --- a/frontend/src/components/common/Accordion/index.tsx +++ b/frontend/src/components/_common/molecules/Accordion/index.tsx @@ -1,8 +1,8 @@ +import ChevronButton from '@components/_common/atoms/ChevronButton'; import React, { useState } from 'react'; import { HiOutlineClipboardList } from 'react-icons/hi'; import S from './style'; -import ChevronButton from '../ChevronButton'; interface AccordionProps { title: React.ReactNode; diff --git a/frontend/src/components/common/Accordion/style.ts b/frontend/src/components/_common/molecules/Accordion/style.ts similarity index 100% rename from frontend/src/components/common/Accordion/style.ts rename to frontend/src/components/_common/molecules/Accordion/style.ts diff --git a/frontend/src/components/recruitment/CheckBoxOption/CheckBoxOption.stories.tsx b/frontend/src/components/_common/molecules/CheckBoxOption/CheckBoxOption.stories.tsx similarity index 100% rename from frontend/src/components/recruitment/CheckBoxOption/CheckBoxOption.stories.tsx rename to frontend/src/components/_common/molecules/CheckBoxOption/CheckBoxOption.stories.tsx diff --git a/frontend/src/components/recruitment/CheckBoxOption/index.tsx b/frontend/src/components/_common/molecules/CheckBoxOption/index.tsx similarity index 94% rename from frontend/src/components/recruitment/CheckBoxOption/index.tsx rename to frontend/src/components/_common/molecules/CheckBoxOption/index.tsx index 2aab1a1e5..f2cc2a443 100644 --- a/frontend/src/components/recruitment/CheckBoxOption/index.tsx +++ b/frontend/src/components/_common/molecules/CheckBoxOption/index.tsx @@ -1,7 +1,7 @@ /* eslint-disable prefer-arrow-callback */ import { ComponentPropsWithRef } from 'react'; import { HiOutlineX } from 'react-icons/hi'; -import CheckBox from '@components/common/CheckBox'; +import CheckBox from '@components/_common/atoms/CheckBox'; import S from './style'; interface CheckBoxOptionProps { diff --git a/frontend/src/components/recruitment/CheckBoxOption/style.ts b/frontend/src/components/_common/molecules/CheckBoxOption/style.ts similarity index 100% rename from frontend/src/components/recruitment/CheckBoxOption/style.ts rename to frontend/src/components/_common/molecules/CheckBoxOption/style.ts diff --git a/frontend/src/components/common/CheckboxLabelField/CheckboxLabelField.stories.tsx b/frontend/src/components/_common/molecules/CheckboxLabelField/CheckboxLabelField.stories.tsx similarity index 100% rename from frontend/src/components/common/CheckboxLabelField/CheckboxLabelField.stories.tsx rename to frontend/src/components/_common/molecules/CheckboxLabelField/CheckboxLabelField.stories.tsx diff --git a/frontend/src/components/common/CheckboxLabelField/index.tsx b/frontend/src/components/_common/molecules/CheckboxLabelField/index.tsx similarity index 96% rename from frontend/src/components/common/CheckboxLabelField/index.tsx rename to frontend/src/components/_common/molecules/CheckboxLabelField/index.tsx index a78f67396..34bf51410 100644 --- a/frontend/src/components/common/CheckboxLabelField/index.tsx +++ b/frontend/src/components/_common/molecules/CheckboxLabelField/index.tsx @@ -1,4 +1,4 @@ -import CheckBox from '../CheckBox'; +import CheckBox from '../../atoms/CheckBox'; import S from './style'; interface Option { diff --git a/frontend/src/components/common/CheckboxLabelField/style.ts b/frontend/src/components/_common/molecules/CheckboxLabelField/style.ts similarity index 100% rename from frontend/src/components/common/CheckboxLabelField/style.ts rename to frontend/src/components/_common/molecules/CheckboxLabelField/style.ts diff --git a/frontend/src/components/common/Dropdown/Dropdown.stories.tsx b/frontend/src/components/_common/molecules/Dropdown/Dropdown.stories.tsx similarity index 100% rename from frontend/src/components/common/Dropdown/Dropdown.stories.tsx rename to frontend/src/components/_common/molecules/Dropdown/Dropdown.stories.tsx diff --git a/frontend/src/components/common/Dropdown/index.tsx b/frontend/src/components/_common/molecules/Dropdown/index.tsx similarity index 93% rename from frontend/src/components/common/Dropdown/index.tsx rename to frontend/src/components/_common/molecules/Dropdown/index.tsx index 1b80089b4..dd8dbcad7 100644 --- a/frontend/src/components/common/Dropdown/index.tsx +++ b/frontend/src/components/_common/molecules/Dropdown/index.tsx @@ -1,7 +1,7 @@ import { useState, useRef, useEffect } from 'react'; -import DropdownItem from '@components/common/DropdownItem'; -import ChevronButton from '@components/common/ChevronButton'; +import ChevronButton from '@components/_common/atoms/ChevronButton'; import { DropdownListItem } from '@customTypes/common'; +import DropdownItem from '@components/_common/atoms/DropdownItem'; import S from './style'; export interface DropdownProps { diff --git a/frontend/src/components/common/Dropdown/style.ts b/frontend/src/components/_common/molecules/Dropdown/style.ts similarity index 100% rename from frontend/src/components/common/Dropdown/style.ts rename to frontend/src/components/_common/molecules/Dropdown/style.ts diff --git a/frontend/src/components/common/InputField/InputField.stories.tsx b/frontend/src/components/_common/molecules/InputField/InputField.stories.tsx similarity index 100% rename from frontend/src/components/common/InputField/InputField.stories.tsx rename to frontend/src/components/_common/molecules/InputField/InputField.stories.tsx diff --git a/frontend/src/components/common/InputField/index.tsx b/frontend/src/components/_common/molecules/InputField/index.tsx similarity index 100% rename from frontend/src/components/common/InputField/index.tsx rename to frontend/src/components/_common/molecules/InputField/index.tsx diff --git a/frontend/src/components/common/InputField/style.ts b/frontend/src/components/_common/molecules/InputField/style.ts similarity index 100% rename from frontend/src/components/common/InputField/style.ts rename to frontend/src/components/_common/molecules/InputField/style.ts diff --git a/frontend/src/components/common/PopOverMenu/PopOverMenu.stories.tsx b/frontend/src/components/_common/molecules/PopOverMenu/PopOverMenu.stories.tsx similarity index 100% rename from frontend/src/components/common/PopOverMenu/PopOverMenu.stories.tsx rename to frontend/src/components/_common/molecules/PopOverMenu/PopOverMenu.stories.tsx diff --git a/frontend/src/components/common/PopOverMenu/index.tsx b/frontend/src/components/_common/molecules/PopOverMenu/index.tsx similarity index 93% rename from frontend/src/components/common/PopOverMenu/index.tsx rename to frontend/src/components/_common/molecules/PopOverMenu/index.tsx index 1ddb55fa8..5e68ab239 100644 --- a/frontend/src/components/common/PopOverMenu/index.tsx +++ b/frontend/src/components/_common/molecules/PopOverMenu/index.tsx @@ -1,5 +1,5 @@ import type { PopOverMenuItem } from '@customTypes/common'; -import DropdownItem from '@components/common/DropdownItem'; +import DropdownItem from '@components/_common/atoms/DropdownItem'; import S from './style'; export interface PopOverMenuProps { diff --git a/frontend/src/components/common/PopOverMenu/style.ts b/frontend/src/components/_common/molecules/PopOverMenu/style.ts similarity index 100% rename from frontend/src/components/common/PopOverMenu/style.ts rename to frontend/src/components/_common/molecules/PopOverMenu/style.ts diff --git a/frontend/src/components/common/RadioField/RadioField.stories.tsx b/frontend/src/components/_common/molecules/RadioField/RadioField.stories.tsx similarity index 100% rename from frontend/src/components/common/RadioField/RadioField.stories.tsx rename to frontend/src/components/_common/molecules/RadioField/RadioField.stories.tsx diff --git a/frontend/src/components/common/RadioField/index.tsx b/frontend/src/components/_common/molecules/RadioField/index.tsx similarity index 100% rename from frontend/src/components/common/RadioField/index.tsx rename to frontend/src/components/_common/molecules/RadioField/index.tsx index 7e68a43ac..6ccd19479 100644 --- a/frontend/src/components/common/RadioField/index.tsx +++ b/frontend/src/components/_common/molecules/RadioField/index.tsx @@ -1,5 +1,5 @@ -import S from './style'; import RadioOption from '../RadioOption'; +import S from './style'; interface Option { label: string; diff --git a/frontend/src/components/common/RadioField/style.ts b/frontend/src/components/_common/molecules/RadioField/style.ts similarity index 100% rename from frontend/src/components/common/RadioField/style.ts rename to frontend/src/components/_common/molecules/RadioField/style.ts diff --git a/frontend/src/components/recruitment/RadioInputOption/RadioInputOption.stories.tsx b/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx similarity index 100% rename from frontend/src/components/recruitment/RadioInputOption/RadioInputOption.stories.tsx rename to frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx diff --git a/frontend/src/components/recruitment/RadioInputOption/index.tsx b/frontend/src/components/_common/molecules/RadioInputOption/index.tsx similarity index 94% rename from frontend/src/components/recruitment/RadioInputOption/index.tsx rename to frontend/src/components/_common/molecules/RadioInputOption/index.tsx index 531a07f11..98b3abed8 100644 --- a/frontend/src/components/recruitment/RadioInputOption/index.tsx +++ b/frontend/src/components/_common/molecules/RadioInputOption/index.tsx @@ -1,6 +1,6 @@ import { ComponentPropsWithRef } from 'react'; import { HiOutlineX } from 'react-icons/hi'; -import Radio from '@components/common/Radio'; +import Radio from '@components/_common/atoms/Radio'; import S from './style'; interface RadioInputOptionProps { diff --git a/frontend/src/components/recruitment/RadioInputOption/style.ts b/frontend/src/components/_common/molecules/RadioInputOption/style.ts similarity index 100% rename from frontend/src/components/recruitment/RadioInputOption/style.ts rename to frontend/src/components/_common/molecules/RadioInputOption/style.ts diff --git a/frontend/src/components/common/RadioLabelField/RadioLabelField.stories.tsx b/frontend/src/components/_common/molecules/RadioLabelField/RadioLabelField.stories.tsx similarity index 100% rename from frontend/src/components/common/RadioLabelField/RadioLabelField.stories.tsx rename to frontend/src/components/_common/molecules/RadioLabelField/RadioLabelField.stories.tsx diff --git a/frontend/src/components/common/RadioLabelField/index.tsx b/frontend/src/components/_common/molecules/RadioLabelField/index.tsx similarity index 96% rename from frontend/src/components/common/RadioLabelField/index.tsx rename to frontend/src/components/_common/molecules/RadioLabelField/index.tsx index 32d59f435..35c3f08bc 100644 --- a/frontend/src/components/common/RadioLabelField/index.tsx +++ b/frontend/src/components/_common/molecules/RadioLabelField/index.tsx @@ -1,4 +1,4 @@ -import Radio from '../Radio'; +import Radio from '@components/_common/atoms/Radio'; import S from './style'; interface Option { diff --git a/frontend/src/components/common/RadioLabelField/style.ts b/frontend/src/components/_common/molecules/RadioLabelField/style.ts similarity index 100% rename from frontend/src/components/common/RadioLabelField/style.ts rename to frontend/src/components/_common/molecules/RadioLabelField/style.ts diff --git a/frontend/src/components/common/RadioOption/RadioOption.stories.tsx b/frontend/src/components/_common/molecules/RadioOption/RadioOption.stories.tsx similarity index 100% rename from frontend/src/components/common/RadioOption/RadioOption.stories.tsx rename to frontend/src/components/_common/molecules/RadioOption/RadioOption.stories.tsx diff --git a/frontend/src/components/common/RadioOption/index.tsx b/frontend/src/components/_common/molecules/RadioOption/index.tsx similarity index 89% rename from frontend/src/components/common/RadioOption/index.tsx rename to frontend/src/components/_common/molecules/RadioOption/index.tsx index fa9d2e5e0..0f4deb90e 100644 --- a/frontend/src/components/common/RadioOption/index.tsx +++ b/frontend/src/components/_common/molecules/RadioOption/index.tsx @@ -1,5 +1,5 @@ +import Radio from '@components/_common/atoms/Radio'; import S from './style'; -import Radio from '../Radio'; interface RadioOptionProps { label: string; diff --git a/frontend/src/components/common/RadioOption/style.ts b/frontend/src/components/_common/molecules/RadioOption/style.ts similarity index 100% rename from frontend/src/components/common/RadioOption/style.ts rename to frontend/src/components/_common/molecules/RadioOption/style.ts diff --git a/frontend/src/components/common/Tab/index.tsx b/frontend/src/components/_common/molecules/Tab/index.tsx similarity index 100% rename from frontend/src/components/common/Tab/index.tsx rename to frontend/src/components/_common/molecules/Tab/index.tsx diff --git a/frontend/src/components/common/Tab/style.ts b/frontend/src/components/_common/molecules/Tab/style.ts similarity index 100% rename from frontend/src/components/common/Tab/style.ts rename to frontend/src/components/_common/molecules/Tab/style.ts diff --git a/frontend/src/components/common/Tab/useTab.ts b/frontend/src/components/_common/molecules/Tab/useTab.ts similarity index 100% rename from frontend/src/components/common/Tab/useTab.ts rename to frontend/src/components/_common/molecules/Tab/useTab.ts diff --git a/frontend/src/components/common/TextField/TextField.stories.tsx b/frontend/src/components/_common/molecules/TextField/TextField.stories.tsx similarity index 100% rename from frontend/src/components/common/TextField/TextField.stories.tsx rename to frontend/src/components/_common/molecules/TextField/TextField.stories.tsx diff --git a/frontend/src/components/common/TextField/index.tsx b/frontend/src/components/_common/molecules/TextField/index.tsx similarity index 100% rename from frontend/src/components/common/TextField/index.tsx rename to frontend/src/components/_common/molecules/TextField/index.tsx diff --git a/frontend/src/components/common/TextField/style.ts b/frontend/src/components/_common/molecules/TextField/style.ts similarity index 100% rename from frontend/src/components/common/TextField/style.ts rename to frontend/src/components/_common/molecules/TextField/style.ts diff --git a/frontend/src/components/appModal/ApplicantBaseInfo/index.tsx b/frontend/src/components/appModal/ApplicantBaseInfo/index.tsx index 7e5c2f1ad..a5247c81d 100644 --- a/frontend/src/components/appModal/ApplicantBaseInfo/index.tsx +++ b/frontend/src/components/appModal/ApplicantBaseInfo/index.tsx @@ -1,7 +1,7 @@ import { useParams } from 'react-router-dom'; -import Dropdown from '@components/common/Dropdown'; -import Button from '@components/common/Button'; +import Dropdown from '@components/_common/molecules/Dropdown'; +import Button from '@components/_common/atoms/Button'; import useProcess from '@hooks/useProcess'; import useApplicant from '@hooks/useApplicant'; import specificApplicant from '@hooks/useSpecificApplicant'; diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/index.tsx b/frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/index.tsx index 0c02e56a0..08037af3f 100644 --- a/frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/index.tsx +++ b/frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/index.tsx @@ -1,4 +1,4 @@ -import QuestionBox from '@components/common/QuestionBox'; +import QuestionBox from '@components/_common/atoms/QuestionBox'; import specificApplicant from '@hooks/useSpecificApplicant'; import S from './style'; diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/index.tsx b/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/index.tsx index 775f53460..93552a600 100644 --- a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/index.tsx +++ b/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/index.tsx @@ -1,4 +1,4 @@ -import Button from '@components/common/Button'; +import Button from '@components/_common/atoms/Button'; import S from './style'; interface EvaluationAddButtonProps { diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/index.tsx b/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/index.tsx index 50bf52325..16d26a230 100644 --- a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/index.tsx +++ b/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/index.tsx @@ -1,14 +1,14 @@ import { useState } from 'react'; -import RadioField from '@components/common/RadioField'; -import Button from '@components/common/Button'; -import TextField from '@components/common/TextField'; +import RadioField from '@components/_common/molecules/RadioField'; +import Button from '@components/_common/atoms/Button'; +import TextField from '@components/_common/molecules/TextField'; import useEvaluationMutation from '@hooks/useEvaluationMutation'; import ValidationError from '@utils/errors/ValidationError'; import { validateEvalContent } from '@domain/validations/evaluation'; -import Spinner from '@components/common/Spinner'; +import Spinner from '@components/_common/atoms/Spinner'; import { EVALUATION_CONTENT_MAX_LENGTH, EVALUATION_SCORE } from '../constants'; import S from './style'; diff --git a/frontend/src/components/common/BaseModal/BaseModal.stories.tsx b/frontend/src/components/appModal/BaseModal/BaseModal.stories.tsx similarity index 95% rename from frontend/src/components/common/BaseModal/BaseModal.stories.tsx rename to frontend/src/components/appModal/BaseModal/BaseModal.stories.tsx index dc94580db..56ec9be35 100644 --- a/frontend/src/components/common/BaseModal/BaseModal.stories.tsx +++ b/frontend/src/components/appModal/BaseModal/BaseModal.stories.tsx @@ -1,6 +1,6 @@ import { Meta, StoryObj } from '@storybook/react'; import { ModalProvider, useModal } from '@contexts/ModalContext'; -import Button from '@components/common/Button'; +import Button from '@components/_common/atoms/Button'; import BaseModal from '.'; const meta: Meta = { diff --git a/frontend/src/components/common/BaseModal/index.tsx b/frontend/src/components/appModal/BaseModal/index.tsx similarity index 100% rename from frontend/src/components/common/BaseModal/index.tsx rename to frontend/src/components/appModal/BaseModal/index.tsx diff --git a/frontend/src/components/common/BaseModal/styled.ts b/frontend/src/components/appModal/BaseModal/styled.ts similarity index 100% rename from frontend/src/components/common/BaseModal/styled.ts rename to frontend/src/components/appModal/BaseModal/styled.ts diff --git a/frontend/src/components/common/ModalHeader/index.tsx b/frontend/src/components/appModal/ModalHeader/index.tsx similarity index 88% rename from frontend/src/components/common/ModalHeader/index.tsx rename to frontend/src/components/appModal/ModalHeader/index.tsx index 6adfa229a..af61bfb68 100644 --- a/frontend/src/components/common/ModalHeader/index.tsx +++ b/frontend/src/components/appModal/ModalHeader/index.tsx @@ -1,6 +1,6 @@ import { useModal } from '@contexts/ModalContext'; import { MdClose } from 'react-icons/md'; -import IconButton from '../IconButton'; +import IconButton from '@components/_common/atoms/IconButton'; import S from './style'; interface ModalHeaderProps { diff --git a/frontend/src/components/common/ModalHeader/style.ts b/frontend/src/components/appModal/ModalHeader/style.ts similarity index 100% rename from frontend/src/components/common/ModalHeader/style.ts rename to frontend/src/components/appModal/ModalHeader/style.ts diff --git a/frontend/src/components/appModal/index.tsx b/frontend/src/components/appModal/index.tsx index d9e979d45..9b3ca3080 100644 --- a/frontend/src/components/appModal/index.tsx +++ b/frontend/src/components/appModal/index.tsx @@ -1,9 +1,9 @@ -import BaseModal from '@components/common/BaseModal'; +import BaseModal from '@components/appModal/BaseModal'; import { useSpecificApplicantId } from '@contexts/SpecificApplicnatIdContext'; import { useSpecificProcessId } from '@contexts/SpecificProcessIdContext'; import ApplicantBaseInfo from './ApplicantBaseInfo'; -import ModalHeader from '../common/ModalHeader'; +import ModalHeader from './ModalHeader'; import QuestionSection from './ApplicantDetailInfo/QuestionSection'; import S from './style'; import ApplicantEvalInfo from './ApplicantEvalInfo'; diff --git a/frontend/src/components/applyManagement/index.tsx b/frontend/src/components/applyManagement/index.tsx index b554d2cd6..50ee4e4f9 100644 --- a/frontend/src/components/applyManagement/index.tsx +++ b/frontend/src/components/applyManagement/index.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef } from 'react'; import { useParams } from 'react-router-dom'; import useApplyManagement from '@hooks/useApplyManagement'; -import Button from '@components/common/Button'; +import Button from '@components/_common/atoms/Button'; import QuestionBuilder from '@components/dashboard/DashboardCreate/Apply/QuestionBuilder'; import { APPLY_QUESTION_HEADER, DEFAULT_QUESTIONS, MAX_QUESTION_LENGTH } from '@constants/constants'; diff --git a/frontend/src/components/dashboard/ApplicantCard/index.tsx b/frontend/src/components/dashboard/ApplicantCard/index.tsx index fce8b9cdf..3c2d9a5a8 100644 --- a/frontend/src/components/dashboard/ApplicantCard/index.tsx +++ b/frontend/src/components/dashboard/ApplicantCard/index.tsx @@ -5,8 +5,8 @@ import { useState, useRef, useEffect } from 'react'; import EllipsisIcon from '@assets/icons/ellipsis.svg'; import { PopOverMenuItem } from '@customTypes/common'; -import IconButton from '@components/common/IconButton'; -import PopOverMenu from '@components/common/PopOverMenu'; +import IconButton from '@components/_common/atoms/IconButton'; +import PopOverMenu from '@components/_common/molecules/PopOverMenu'; import formatDate from '@utils/formatDate'; import S from './style'; diff --git a/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionBuilder/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionBuilder/index.tsx index da49f1c92..d09e85e71 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionBuilder/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionBuilder/index.tsx @@ -2,9 +2,9 @@ import { useState } from 'react'; import { Question, QuestionControlActionType, QuestionOptionValue } from '@customTypes/dashboard'; -import InputField from '@components/common/InputField'; -import Dropdown from '@components/common/Dropdown'; -import ToggleSwitch from '@components/common/ToggleSwitch'; +import InputField from '@components/_common/molecules/InputField'; +import Dropdown from '@components/_common/molecules/Dropdown'; +import ToggleSwitch from '@components/_common/atoms/ToggleSwitch'; import { QUESTION_TYPE_NAME } from '@constants/constants'; import CheckBoxField from '@components/recruitment/CheckBoxField'; diff --git a/frontend/src/components/dashboard/DashboardCreate/Apply/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Apply/index.tsx index fe2458ed2..45241ff5c 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Apply/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Apply/index.tsx @@ -2,8 +2,8 @@ import { HiOutlinePlusCircle } from 'react-icons/hi'; import { Question, QuestionOptionValue } from '@customTypes/dashboard'; import { APPLY_QUESTION_HEADER, DEFAULT_QUESTIONS, MAX_QUESTION_LENGTH } from '@constants/constants'; -import Button from '@components/common/Button'; -import ChevronButton from '@components/common/ChevronButton'; +import Button from '@components/_common/atoms/Button'; +import ChevronButton from '@components/_common/atoms/ChevronButton'; import QuestionBuilder from './QuestionBuilder'; import S from './style'; diff --git a/frontend/src/components/dashboard/DashboardCreate/Finish/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Finish/index.tsx index 958903918..d540f3f95 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Finish/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Finish/index.tsx @@ -1,5 +1,5 @@ -import Button from '@components/common/Button'; -import ChevronButton from '@components/common/ChevronButton'; +import Button from '@components/_common/atoms/Button'; +import ChevronButton from '@components/_common/atoms/ChevronButton'; import { routes } from '@router/path'; import { useNavigate } from 'react-router-dom'; import { DOMAIN_URL } from '@constants/constants'; diff --git a/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx index 834b75f02..5b4d89d5b 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx @@ -5,11 +5,11 @@ import { RecruitmentInfoState } from '@customTypes/dashboard'; import formatDate from '@utils/formatDate'; import useForm from '@hooks/utils/useForm'; -import Button from '@components/common/Button'; -import ChevronButton from '@components/common/ChevronButton'; -import DateInput from '@components/common/DateInput'; -import InputField from '@components/common/InputField'; -import TextEditor from '@components/common/TextEditor'; +import Button from '@components/_common/atoms/Button'; +import ChevronButton from '@components/_common/atoms/ChevronButton'; +import DateInput from '@components/_common/atoms/DateInput'; +import InputField from '@components/_common/molecules/InputField'; +import TextEditor from '@components/_common/atoms/TextEditor'; import { validateTitle } from '@domain/validations/recruitment'; import S from './style'; diff --git a/frontend/src/components/dashboard/DashboardCreate/SharePost/index.tsx b/frontend/src/components/dashboard/DashboardCreate/SharePost/index.tsx index 2f07e94e8..fe608014a 100644 --- a/frontend/src/components/dashboard/DashboardCreate/SharePost/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/SharePost/index.tsx @@ -1,7 +1,7 @@ import { Link } from 'react-router-dom'; import { HiClipboard, HiClipboardCheck, HiExternalLink } from 'react-icons/hi'; -import IconButton from '@components/common/IconButton'; +import IconButton from '@components/_common/atoms/IconButton'; import useCopyToClipboard from '@hooks/utils/useCopyToClipboard'; import S from './style'; diff --git a/frontend/src/components/dashboard/DashboardSidebar/LogoutButton/index.tsx b/frontend/src/components/dashboard/DashboardSidebar/LogoutButton/index.tsx index e28613bb2..81e5e5520 100644 --- a/frontend/src/components/dashboard/DashboardSidebar/LogoutButton/index.tsx +++ b/frontend/src/components/dashboard/DashboardSidebar/LogoutButton/index.tsx @@ -1,5 +1,5 @@ import useSignOut from '@hooks/useSignOut'; -import Spinner from '@components/common/Spinner'; +import Spinner from '@components/_common/atoms/Spinner'; import S from './style'; export default function LogoutButton() { diff --git a/frontend/src/components/dashboard/DashboardSidebar/index.tsx b/frontend/src/components/dashboard/DashboardSidebar/index.tsx index bf721bdce..9dec33be3 100644 --- a/frontend/src/components/dashboard/DashboardSidebar/index.tsx +++ b/frontend/src/components/dashboard/DashboardSidebar/index.tsx @@ -1,5 +1,5 @@ import Logo from '@assets/images/logo.svg'; -import Accordion from '@components/common/Accordion'; +import Accordion from '@components/_common/molecules/Accordion'; import { routes } from '@router/path'; import { Link } from 'react-router-dom'; import LogoutButton from './LogoutButton'; diff --git a/frontend/src/components/dashboard/ProcessBoard/index.tsx b/frontend/src/components/dashboard/ProcessBoard/index.tsx index 122e16b86..4728075cf 100644 --- a/frontend/src/components/dashboard/ProcessBoard/index.tsx +++ b/frontend/src/components/dashboard/ProcessBoard/index.tsx @@ -1,6 +1,6 @@ import { Process } from '@customTypes/process'; -import ProcessColumn from '@components/dashboard/ProcessColumn'; import ApplicantModal from '@components/appModal'; +import ProcessColumn from '../ProcessColumn'; import S from './style'; interface KanbanBoardProps { diff --git a/frontend/src/components/postManagement/PostManageBoard/PostManageBoard.stories.tsx b/frontend/src/components/postManagement/PostManageBoard/PostManageBoard.stories.tsx new file mode 100644 index 000000000..b3685e931 --- /dev/null +++ b/frontend/src/components/postManagement/PostManageBoard/PostManageBoard.stories.tsx @@ -0,0 +1,64 @@ +import { RecruitmentInfoState } from '@customTypes/dashboard'; +import type { Meta, StoryObj } from '@storybook/react'; +import PostManageBoard from '.'; + +export default { + component: PostManageBoard, + title: 'common/molecules/postManagement/PostManageBoard', + parameters: { + docs: { + description: { + component: 'PostManageBoard 컴포넌트는 모집 게시글을 관리하는 UI 컴포넌트입니다.', + }, + }, + }, + tags: ['autodocs'], +} as Meta; + +const mockPostState: RecruitmentInfoState = { + title: '프론트엔드 개발자 모집', + startDate: new Date().toISOString(), + endDate: new Date(Date.now() + 86400000 * 7).toISOString(), + postingContent: '이곳에 공고 내용을 작성하세요.', +}; + +const postManagementMock = { + isLoading: false, + postState: mockPostState, + setPostState: () => {}, + modifyPostMutator: { + mutate: () => alert('게시글 수정 요청'), + }, +}; + +const loadingMock = { + isLoading: true, + postState: null, + setPostState: () => {}, + modifyPostMutator: { + mutate: () => alert('게시글 수정 요청'), + }, +}; + +type StoryType = StoryObj; + +export const Default: StoryType = { + args: { + applyFormId: '1234', + ...postManagementMock, + }, + decorators: [ + (Story) => ( +
+ +
+ ), + ], +}; + +export const LoadingState: StoryType = { + args: { + applyFormId: '1234', + ...loadingMock, + }, +}; diff --git a/frontend/src/components/postManagement/PostManageBoard/index.tsx b/frontend/src/components/postManagement/PostManageBoard/index.tsx index f3f08f151..30bfc2441 100644 --- a/frontend/src/components/postManagement/PostManageBoard/index.tsx +++ b/frontend/src/components/postManagement/PostManageBoard/index.tsx @@ -2,16 +2,16 @@ import { useEffect, useRef, useState } from 'react'; import ReactQuill from 'react-quill-new'; import { RecruitmentInfoState } from '@customTypes/dashboard'; -import DateInput from '@components/common/DateInput'; -import InputField from '@components/common/InputField'; +import DateInput from '@components/_common/atoms/DateInput'; +import InputField from '@components/_common/molecules/InputField'; import usePostManagement from '@hooks/usePostManagement'; import useForm from '@hooks/utils/useForm'; import formatDate from '@utils/formatDate'; import { validateTitle } from '@domain/validations/recruitment'; -import TextEditor from '@components/common/TextEditor'; -import Button from '@components/common/Button'; +import TextEditor from '@components/_common/atoms/TextEditor'; +import Button from '@components/_common/atoms/Button'; import S from './style'; interface PostManageBoardProps { diff --git a/frontend/src/components/processManagement/ProcessAddButton/index.tsx b/frontend/src/components/processManagement/ProcessAddButton/index.tsx index 9d5ca14c6..26dd9789c 100644 --- a/frontend/src/components/processManagement/ProcessAddButton/index.tsx +++ b/frontend/src/components/processManagement/ProcessAddButton/index.tsx @@ -2,8 +2,8 @@ import { useState } from 'react'; import plusIcon from '@assets/images/plus.svg'; -import IconButton from '@components/common/IconButton'; -import ProcessAddForm from '@components/processManagement/ProcessAddForm'; +import IconButton from '@components/_common/atoms/IconButton'; +import ProcessAddForm from '../ProcessAddForm'; import S from './style'; diff --git a/frontend/src/components/processManagement/ProcessAddForm/index.tsx b/frontend/src/components/processManagement/ProcessAddForm/index.tsx index d957ebbfc..20a784d56 100644 --- a/frontend/src/components/processManagement/ProcessAddForm/index.tsx +++ b/frontend/src/components/processManagement/ProcessAddForm/index.tsx @@ -1,8 +1,8 @@ import React, { FormEvent, useState } from 'react'; -import Button from '@components/common/Button'; -import InputField from '@components/common/InputField'; -import TextField from '@components/common/TextField'; +import Button from '@components/_common/atoms/Button'; +import InputField from '@components/_common/molecules/InputField'; +import TextField from '@components/_common/molecules/TextField'; import { processMutations } from '@hooks/process'; import { useClickOutside } from '@hooks/utils/useClickOutside'; diff --git a/frontend/src/components/processManagement/ProcessModifyForm/index.tsx b/frontend/src/components/processManagement/ProcessModifyForm/index.tsx index 4dd8c766b..56dcbb133 100644 --- a/frontend/src/components/processManagement/ProcessModifyForm/index.tsx +++ b/frontend/src/components/processManagement/ProcessModifyForm/index.tsx @@ -1,8 +1,8 @@ import React, { FormEvent, useState } from 'react'; -import Button from '@components/common/Button'; -import InputField from '@components/common/InputField'; -import TextField from '@components/common/TextField'; +import Button from '@components/_common/atoms/Button'; +import InputField from '@components/_common/molecules/InputField'; +import TextField from '@components/_common/molecules/TextField'; import { Process } from '@customTypes/process'; import { processMutations } from '@hooks/process'; diff --git a/frontend/src/components/recruitment/CheckBoxField/index.tsx b/frontend/src/components/recruitment/CheckBoxField/index.tsx index 332eaf910..64e564376 100644 --- a/frontend/src/components/recruitment/CheckBoxField/index.tsx +++ b/frontend/src/components/recruitment/CheckBoxField/index.tsx @@ -1,6 +1,6 @@ import React, { useCallback, useEffect, useRef } from 'react'; import { QuestionOptionValue } from '@customTypes/dashboard'; -import CheckBoxOption from '../CheckBoxOption'; +import CheckBoxOption from '../../_common/molecules/CheckBoxOption'; import S from './style'; diff --git a/frontend/src/components/recruitment/RadioInputField/index.tsx b/frontend/src/components/recruitment/RadioInputField/index.tsx index bc6d9ae65..3d6645a21 100644 --- a/frontend/src/components/recruitment/RadioInputField/index.tsx +++ b/frontend/src/components/recruitment/RadioInputField/index.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useRef } from 'react'; import { QuestionOptionValue } from '@customTypes/dashboard'; import S from './style'; -import RadioInputOption from '../RadioInputOption'; +import RadioInputOption from '../../_common/molecules/RadioInputOption'; interface ChoiceOption { choice: string; diff --git a/frontend/src/components/recruitmentPost/ApplyForm/index.tsx b/frontend/src/components/recruitmentPost/ApplyForm/index.tsx index 7d471e067..24fd21616 100644 --- a/frontend/src/components/recruitmentPost/ApplyForm/index.tsx +++ b/frontend/src/components/recruitmentPost/ApplyForm/index.tsx @@ -1,5 +1,5 @@ -import Button from '@components/common/Button'; -import InputField from '@components/common/InputField'; +import Button from '@components/_common/atoms/Button'; +import InputField from '@components/_common/molecules/InputField'; import CustomQuestion from '@components/recruitmentPost/CustomQuestion'; import { FormEventHandler, useState } from 'react'; @@ -10,7 +10,7 @@ import { applyMutations, applyQueries } from '@hooks/apply'; import useForm from '@hooks/utils/useForm'; import { useParams } from 'react-router-dom'; -import CheckBox from '@components/common/CheckBox'; +import CheckBox from '@components/_common/atoms/CheckBox'; import { useToast } from '@contexts/ToastContext'; import C from '../style'; import S from './style'; diff --git a/frontend/src/components/recruitmentPost/CustomQuestion/index.tsx b/frontend/src/components/recruitmentPost/CustomQuestion/index.tsx index 8a90f43dc..0124b1ce1 100644 --- a/frontend/src/components/recruitmentPost/CustomQuestion/index.tsx +++ b/frontend/src/components/recruitmentPost/CustomQuestion/index.tsx @@ -1,7 +1,7 @@ -import TextField from '@components/common/TextField'; -import InputField from '@components/common/InputField'; -import RadioLabelField from '@components/common/RadioLabelField'; -import CheckboxLabelField from '@components/common/CheckboxLabelField'; +import TextField from '@components/_common/molecules/TextField'; +import InputField from '@components/_common/molecules/InputField'; +import RadioLabelField from '@components/_common/atoms/RadioLabelField'; +import CheckboxLabelField from '@components/_common/CheckboxLabelField'; import { Question } from '@customTypes/apply'; import { ChangeEventHandler } from 'react'; import { QUESTION_INPUT_LENGTH } from '@constants/constants'; diff --git a/frontend/src/components/recruitmentPost/RecruitmentPostDetail/index.tsx b/frontend/src/components/recruitmentPost/RecruitmentPostDetail/index.tsx index 74fa6c5cb..349f5300e 100644 --- a/frontend/src/components/recruitmentPost/RecruitmentPostDetail/index.tsx +++ b/frontend/src/components/recruitmentPost/RecruitmentPostDetail/index.tsx @@ -1,5 +1,5 @@ -import Button from '@components/common/Button'; -import TextEditor from '@components/common/TextEditor'; +import Button from '@components/_common/atoms/Button'; +import TextEditor from '@components/_common/atoms/TextEditor'; import { RecruitmentPost } from '@customTypes/apply'; import C from '../style'; diff --git a/frontend/src/components/recruitmentPost/RecruitmentPostTab/index.tsx b/frontend/src/components/recruitmentPost/RecruitmentPostTab/index.tsx index 18deb5a96..0196d9b0e 100644 --- a/frontend/src/components/recruitmentPost/RecruitmentPostTab/index.tsx +++ b/frontend/src/components/recruitmentPost/RecruitmentPostTab/index.tsx @@ -1,5 +1,5 @@ -import Tab from '@components/common/Tab'; -import useTab from '@components/common/Tab/useTab'; +import Tab from '@components/_common/atoms/Tab'; +import useTab from '@components/_common/atoms/Tab/useTab'; import { RECRUITMENT_POST_MENUS } from '@constants/constants'; import { applyQueries } from '@hooks/apply'; diff --git a/frontend/src/contexts/ToastContext.tsx b/frontend/src/contexts/ToastContext.tsx index f4074ad8f..df4783a1c 100644 --- a/frontend/src/contexts/ToastContext.tsx +++ b/frontend/src/contexts/ToastContext.tsx @@ -1,4 +1,4 @@ -import { ToastModal } from '@components/common/Toast'; +import { ToastModal } from '@components/_common/atoms/Toast'; import { createContext, ReactNode, useCallback, useContext, useMemo, useRef, useState } from 'react'; type ToastContextType = { diff --git a/frontend/src/pages/ConfirmApply/index.tsx b/frontend/src/pages/ConfirmApply/index.tsx index 89acb767e..f794ea183 100644 --- a/frontend/src/pages/ConfirmApply/index.tsx +++ b/frontend/src/pages/ConfirmApply/index.tsx @@ -1,5 +1,5 @@ import { useLocation, useNavigate, useParams } from 'react-router-dom'; -import Button from '@components/common/Button'; +import Button from '@components/_common/atoms/Button'; import { LuCheckCircle } from 'react-icons/lu'; diff --git a/frontend/src/pages/Dashboard/index.tsx b/frontend/src/pages/Dashboard/index.tsx index 68c76aa00..67fe790e7 100644 --- a/frontend/src/pages/Dashboard/index.tsx +++ b/frontend/src/pages/Dashboard/index.tsx @@ -1,15 +1,15 @@ /* eslint-disable no-trailing-spaces */ import { useParams } from 'react-router-dom'; -import Tab from '@components/common/Tab'; +import Tab from '@components/_common/molecules/Tab'; import ProcessBoard from '@components/dashboard/ProcessBoard'; import ApplyManagement from '@components/applyManagement'; import ProcessManageBoard from '@components/processManagement/ProcessManageBoard'; import PostManageBoard from '@components/postManagement/PostManageBoard'; -import OpenInNewTab from '@components/common/OpenInNewTab'; -import CopyToClipboard from '@components/common/CopyToClipboard'; +import OpenInNewTab from '@components/_common/atoms/OpenInNewTab'; +import CopyToClipboard from '@components/_common/atoms/CopyToClipboard'; -import useTab from '@components/common/Tab/useTab'; +import useTab from '@components/_common/molecules/Tab/useTab'; import useProcess from '@hooks/useProcess'; import { DASHBOARD_TAB_MENUS } from '@constants/constants'; diff --git a/frontend/src/pages/DashboardLayout/index.tsx b/frontend/src/pages/DashboardLayout/index.tsx index 0bdc94be5..baeb5174b 100644 --- a/frontend/src/pages/DashboardLayout/index.tsx +++ b/frontend/src/pages/DashboardLayout/index.tsx @@ -1,4 +1,4 @@ -import DashboardSidebar from '@components/dashboard/DashboardSidebar'; +import DashboardSidebar from '@components/_common/dashboard/DashboardSidebar'; import useGetDashboards from '@hooks/useGetDashboards'; import { Outlet, useParams } from 'react-router-dom'; import S from './style'; diff --git a/frontend/src/pages/ErrorPage/index.tsx b/frontend/src/pages/ErrorPage/index.tsx index 2cb8a8667..499d2459c 100644 --- a/frontend/src/pages/ErrorPage/index.tsx +++ b/frontend/src/pages/ErrorPage/index.tsx @@ -1,6 +1,6 @@ import ApiError from '@api/ApiError'; -import Button from '@components/common/Button'; -import { ButtonColor } from '@components/common/Button/style'; +import Button from '@components/_common/atoms/Button'; +import { ButtonColor } from '@components/_common/atoms/Button/style'; import { isRouteErrorResponse, useNavigate, useRouteError } from 'react-router-dom'; import { routes } from '@router/path'; import useClubId from '@hooks/service/useClubId'; diff --git a/frontend/src/pages/SignIn/index.tsx b/frontend/src/pages/SignIn/index.tsx index fbded8d13..f290dd8e1 100644 --- a/frontend/src/pages/SignIn/index.tsx +++ b/frontend/src/pages/SignIn/index.tsx @@ -1,8 +1,8 @@ import { Link } from 'react-router-dom'; -import Button from '@components/common/Button'; -import Spinner from '@components/common/Spinner'; -import InputField from '@components/common/InputField'; +import Button from '@components/_common/atoms/Button'; +import Spinner from '@components/_common/atoms/Spinner'; +import InputField from '@components/_common/molecules/InputField'; import useForm from '@hooks/utils/useForm'; import useSignIn from '@hooks/useSignIn'; diff --git a/frontend/src/pages/SignUp/PasswordInput.tsx b/frontend/src/pages/SignUp/PasswordInput.tsx index b6b802417..156bcdb20 100644 --- a/frontend/src/pages/SignUp/PasswordInput.tsx +++ b/frontend/src/pages/SignUp/PasswordInput.tsx @@ -1,6 +1,6 @@ /* eslint-disable react/destructuring-assignment */ import { ComponentProps, useState } from 'react'; -import InputField from '@components/common/InputField'; +import InputField from '@components/_common/molecules/InputField'; import { FaEyeSlash, FaEye } from 'react-icons/fa'; import { HiOutlineCheckCircle, HiOutlineMinusCircle } from 'react-icons/hi2'; import S from './style'; diff --git a/frontend/src/pages/SignUp/index.tsx b/frontend/src/pages/SignUp/index.tsx index 42098a02e..1f05dfd2b 100644 --- a/frontend/src/pages/SignUp/index.tsx +++ b/frontend/src/pages/SignUp/index.tsx @@ -1,6 +1,6 @@ -import Button from '@components/common/Button'; -import InputField from '@components/common/InputField'; -import Spinner from '@components/common/Spinner'; +import Button from '@components/_common/atoms/Button'; +import InputField from '@components/_common/molecules/InputField'; +import Spinner from '@components/_common/atoms/Spinner'; import { validateEmail, validatePhoneNumber } from '@domain/validations/apply'; import useSignUp from '@hooks/useSignUp'; import useForm from '@hooks/utils/useForm'; From 84cdd1aca8ac889870207efaad97eddcfe8fee5c Mon Sep 17 00:00:00 2001 From: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:32:57 +0900 Subject: [PATCH 3/7] =?UTF-8?q?chore:=20=EC=8A=A4=ED=86=A0=EB=A6=AC?= =?UTF-8?q?=EB=B6=81=20=EB=B0=8F=20=EC=86=8C=EC=8A=A4=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EA=B2=BD=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApplicantBaseInfo/ApplicantBaseInfo.stories.tsx | 2 +- .../ApplicantBaseInfo/index.tsx | 0 .../ApplicantBaseInfo/style.ts | 0 .../AppDetailHeader/AppDetailHeader.stories.tsx | 2 +- .../ApplicantDetailInfo/AppDetailHeader/index.tsx | 0 .../ApplicantDetailInfo/AppDetailHeader/style.ts | 0 .../ApplicantDetailInfo.stories.tsx | 2 +- .../QuestionSection/QuestionSection.stories.tsx | 2 +- .../ApplicantDetailInfo/QuestionSection/index.tsx | 0 .../ApplicantDetailInfo/QuestionSection/style.ts | 0 .../ApplicantDetailInfo/index.tsx | 0 .../ApplicantDetailInfo/style.ts | 0 .../EvaluationAddButton.stories.tsx | 2 +- .../ApplicantEvalInfo/EvaluationAddButton/index.tsx | 0 .../ApplicantEvalInfo/EvaluationAddButton/style.ts | 0 .../EvaluationCard/EvaluationCard.stories.tsx | 2 +- .../ApplicantEvalInfo/EvaluationCard/index.tsx | 0 .../ApplicantEvalInfo/EvaluationCard/style.ts | 0 .../EvaluationForm/EvaluationForm.stories.tsx | 2 +- .../ApplicantEvalInfo/EvaluationForm/index.tsx | 0 .../ApplicantEvalInfo/EvaluationForm/style.ts | 0 .../EvaluationHeader/EvaluationHeader.stories.tsx | 2 +- .../ApplicantEvalInfo/EvaluationHeader/index.tsx | 0 .../ApplicantEvalInfo/EvaluationHeader/style.ts | 0 .../ApplicantEvalInfo/constants.ts | 0 .../ApplicantEvalInfo/index.tsx | 0 .../ApplicantEvalInfo/style.ts | 0 .../BaseModal/BaseModal.stories.tsx | 2 +- .../{appModal => ApplicantModal}/BaseModal/index.tsx | 0 .../{appModal => ApplicantModal}/BaseModal/styled.ts | 0 .../ModalHeader/index.tsx | 2 +- .../ModalHeader/style.ts | 0 .../{appModal => ApplicantModal}/index.tsx | 12 +++++++----- .../components/{appModal => ApplicantModal}/style.ts | 0 .../_common/atoms/Button/Button.stories.tsx | 2 +- .../_common/atoms/CheckBox/CheckBox.stories.tsx | 2 +- .../CopyToClipboard/CopyToClipboard.stories.tsx | 2 +- .../_common/atoms/DateInput/DateInput.stories.tsx | 2 +- .../atoms/DropdownItem/DropdownItem.stories.tsx | 2 +- .../_common/atoms/IconButton/IconButton.stories.tsx | 2 +- .../atoms/OpenInNewTab/OpenInNewTab.stories.tsx | 2 +- .../atoms/QuestionBox/QuestionBox.stories.tsx | 2 +- .../components/_common/atoms/Radio/Radio.stories.tsx | 2 +- .../_common/atoms/Spinner/Spinner.stories.tsx | 2 +- .../_common/atoms/TextEditor/TextEditor.stories.tsx | 2 +- .../components/_common/atoms/Toast/Toast.stories.tsx | 2 +- .../atoms/ToggleSwitch/ToggleSwitch.stories.tsx | 2 +- .../molecules/Accordion/Accordion.stories.tsx | 2 +- .../CheckBoxOption/CheckBoxOption.stories.tsx | 2 +- .../CheckboxLabelField.stories.tsx | 2 +- .../_common/molecules/Dropdown/Dropdown.stories.tsx | 2 +- .../molecules/InputField/InputField.stories.tsx | 2 +- .../molecules/PopOverMenu/PopOverMenu.stories.tsx | 2 +- .../molecules/RadioField/RadioField.stories.tsx | 2 +- .../RadioInputOption/RadioInputOption.stories.tsx | 2 +- .../RadioLabelField/RadioLabelField.stories.tsx | 2 +- .../molecules/RadioOption/RadioOption.stories.tsx | 2 +- .../molecules/TextField/TextField.stories.tsx | 2 +- .../applyManagement/ApplyManagement.stories.tsx | 2 +- .../ApplicantCard/ApplicantCard.stories.tsx | 2 +- .../DashboardCreate/{Apply => }/Apply.stories.tsx | 4 ++-- .../QuestionBuilder/QuestionBuilder.stories.tsx | 2 +- .../QuestionChoicesBuilder.stories.tsx | 2 +- .../QuestionController.stories.tsx | 2 +- .../DashboardCreate/Finish/Finish.stories.tsx | 2 +- .../Recruitment/Recruitment.stories.tsx | 2 +- .../DashboardCreate/SharePost/SharePost.stories.tsx | 2 +- .../DashboardSidebar/DashboardSidebar.stories.tsx | 2 +- .../src/components/dashboard/ProcessBoard/index.tsx | 2 +- .../ProcessColumn/ProcessColumn.stories.tsx | 2 +- .../ProcessDescription.stories.tsx | 2 +- .../ProcessAddButton/ProcessAddButton.stories.tsx | 2 +- .../ProcessAddForm/ProcessAddForm.stories.tsx | 2 +- .../ProcessModifyForm/ProcessModifyForm.stories.tsx | 2 +- .../CheckBoxField/CheckBoxField.stories.tsx | 2 +- .../RadioInputField/RadioInputField.stories.tsx | 2 +- .../RecruitmentCard/RecruitmentCard.stories.tsx | 2 +- .../RecruitmentCardStat.stories.tsx | 2 +- .../RecruitmentSidebar.stories.tsx | 2 +- .../recruitmentPost/CustomQuestion/index.tsx | 4 ++-- .../recruitmentPost/RecruitmentPostTab/index.tsx | 4 ++-- frontend/src/domain/validations/evaluation.ts | 2 +- frontend/src/pages/DashboardLayout/index.tsx | 2 +- 83 files changed, 69 insertions(+), 67 deletions(-) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantBaseInfo/ApplicantBaseInfo.stories.tsx (92%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantBaseInfo/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantBaseInfo/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/AppDetailHeader/AppDetailHeader.stories.tsx (95%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/AppDetailHeader/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/AppDetailHeader/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/ApplicantDetailInfo.stories.tsx (91%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/QuestionSection/QuestionSection.stories.tsx (89%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/QuestionSection/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/QuestionSection/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantDetailInfo/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationAddButton/EvaluationAddButton.stories.tsx (89%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationAddButton/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationAddButton/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationCard/EvaluationCard.stories.tsx (92%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationCard/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationCard/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationForm/EvaluationForm.stories.tsx (91%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationForm/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationForm/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationHeader/EvaluationHeader.stories.tsx (93%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationHeader/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/EvaluationHeader/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/constants.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/ApplicantEvalInfo/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/BaseModal/BaseModal.stories.tsx (97%) rename frontend/src/components/{appModal => ApplicantModal}/BaseModal/index.tsx (100%) rename frontend/src/components/{appModal => ApplicantModal}/BaseModal/styled.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/ModalHeader/index.tsx (86%) rename frontend/src/components/{appModal => ApplicantModal}/ModalHeader/style.ts (100%) rename frontend/src/components/{appModal => ApplicantModal}/index.tsx (91%) rename frontend/src/components/{appModal => ApplicantModal}/style.ts (100%) rename frontend/src/components/dashboard/DashboardCreate/{Apply => }/Apply.stories.tsx (96%) diff --git a/frontend/src/components/appModal/ApplicantBaseInfo/ApplicantBaseInfo.stories.tsx b/frontend/src/components/ApplicantModal/ApplicantBaseInfo/ApplicantBaseInfo.stories.tsx similarity index 92% rename from frontend/src/components/appModal/ApplicantBaseInfo/ApplicantBaseInfo.stories.tsx rename to frontend/src/components/ApplicantModal/ApplicantBaseInfo/ApplicantBaseInfo.stories.tsx index de0f19930..29200d965 100644 --- a/frontend/src/components/appModal/ApplicantBaseInfo/ApplicantBaseInfo.stories.tsx +++ b/frontend/src/components/ApplicantModal/ApplicantBaseInfo/ApplicantBaseInfo.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import ApplicantBaseInfo from '.'; const meta: Meta = { - title: 'Components/ApplicantModal/ApplicantBaseInfo', + title: 'Organisms/ApplicantModal/ApplicantBaseInfo', component: ApplicantBaseInfo, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/ApplicantBaseInfo/index.tsx b/frontend/src/components/ApplicantModal/ApplicantBaseInfo/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantBaseInfo/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantBaseInfo/index.tsx diff --git a/frontend/src/components/appModal/ApplicantBaseInfo/style.ts b/frontend/src/components/ApplicantModal/ApplicantBaseInfo/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantBaseInfo/style.ts rename to frontend/src/components/ApplicantModal/ApplicantBaseInfo/style.ts diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/AppDetailHeader/AppDetailHeader.stories.tsx b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/AppDetailHeader/AppDetailHeader.stories.tsx similarity index 95% rename from frontend/src/components/appModal/ApplicantDetailInfo/AppDetailHeader/AppDetailHeader.stories.tsx rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/AppDetailHeader/AppDetailHeader.stories.tsx index f30d1170b..71fa46b86 100644 --- a/frontend/src/components/appModal/ApplicantDetailInfo/AppDetailHeader/AppDetailHeader.stories.tsx +++ b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/AppDetailHeader/AppDetailHeader.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import Header from '.'; const meta: Meta = { - title: 'Components/ApplicantModal/ApplicantDetailInfo/Header', + title: 'Organisms/ApplicantModal/ApplicantDetailInfo/AppDetailHeader', component: Header, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/AppDetailHeader/index.tsx b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/AppDetailHeader/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantDetailInfo/AppDetailHeader/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/AppDetailHeader/index.tsx diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/AppDetailHeader/style.ts b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/AppDetailHeader/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantDetailInfo/AppDetailHeader/style.ts rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/AppDetailHeader/style.ts diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/ApplicantDetailInfo.stories.tsx b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/ApplicantDetailInfo.stories.tsx similarity index 91% rename from frontend/src/components/appModal/ApplicantDetailInfo/ApplicantDetailInfo.stories.tsx rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/ApplicantDetailInfo.stories.tsx index afea7107a..224a96c79 100644 --- a/frontend/src/components/appModal/ApplicantDetailInfo/ApplicantDetailInfo.stories.tsx +++ b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/ApplicantDetailInfo.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import ApplicantDetailInfo from '.'; const meta: Meta = { - title: 'Components/ApplicantDetailInfo', + title: 'Organisms/ApplicantModal/ApplicantDetailInfo', component: ApplicantDetailInfo, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/QuestionSection.stories.tsx b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/QuestionSection/QuestionSection.stories.tsx similarity index 89% rename from frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/QuestionSection.stories.tsx rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/QuestionSection/QuestionSection.stories.tsx index fd22d56c8..5eb185b4c 100644 --- a/frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/QuestionSection.stories.tsx +++ b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/QuestionSection/QuestionSection.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import QuestionSection from '.'; const meta: Meta = { - title: 'Components/ApplicantModal/ApplicantDetailInfo/QuestionSection', + title: 'Organisms/ApplicantModal/ApplicantDetailInfo/QuestionSection', component: QuestionSection, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/index.tsx b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/QuestionSection/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/QuestionSection/index.tsx diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/style.ts b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/QuestionSection/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantDetailInfo/QuestionSection/style.ts rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/QuestionSection/style.ts diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/index.tsx b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantDetailInfo/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/index.tsx diff --git a/frontend/src/components/appModal/ApplicantDetailInfo/style.ts b/frontend/src/components/ApplicantModal/ApplicantDetailInfo/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantDetailInfo/style.ts rename to frontend/src/components/ApplicantModal/ApplicantDetailInfo/style.ts diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/EvaluationAddButton.stories.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton/EvaluationAddButton.stories.tsx similarity index 89% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/EvaluationAddButton.stories.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton/EvaluationAddButton.stories.tsx index 35cc371cb..92cdd0bcc 100644 --- a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/EvaluationAddButton.stories.tsx +++ b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton/EvaluationAddButton.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import EvaluationAddButton from '.'; const meta = { - title: 'Components/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton', + title: 'Organisms/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton', component: EvaluationAddButton, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/index.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton/index.tsx diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/style.ts b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationAddButton/style.ts rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationAddButton/style.ts diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationCard/EvaluationCard.stories.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationCard/EvaluationCard.stories.tsx similarity index 92% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationCard/EvaluationCard.stories.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationCard/EvaluationCard.stories.tsx index e122a51aa..7a0c4eef0 100644 --- a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationCard/EvaluationCard.stories.tsx +++ b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationCard/EvaluationCard.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import EvaluationCard from './index'; const meta: Meta = { - title: 'Components/ApplicantModal/ApplicantEvalInfo/EvaluationCard', + title: 'Organisms/ApplicantModal/ApplicantEvalInfo/EvaluationCard', component: EvaluationCard, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationCard/index.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationCard/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationCard/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationCard/index.tsx diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationCard/style.ts b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationCard/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationCard/style.ts rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationCard/style.ts diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/EvaluationForm.stories.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationForm/EvaluationForm.stories.tsx similarity index 91% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/EvaluationForm.stories.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationForm/EvaluationForm.stories.tsx index 1dae56b70..fc3718bcb 100644 --- a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/EvaluationForm.stories.tsx +++ b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationForm/EvaluationForm.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import EvaluationForm from './index'; const meta: Meta = { - title: 'Components/ApplicantModal/ApplicantEvalInfo/EvaluationForm', + title: 'Organisms/ApplicantModal/ApplicantEvalInfo/EvaluationForm', component: EvaluationForm, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/index.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationForm/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationForm/index.tsx diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/style.ts b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationForm/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationForm/style.ts rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationForm/style.ts diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationHeader/EvaluationHeader.stories.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationHeader/EvaluationHeader.stories.tsx similarity index 93% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationHeader/EvaluationHeader.stories.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationHeader/EvaluationHeader.stories.tsx index 5ace91c94..c776d5e65 100644 --- a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationHeader/EvaluationHeader.stories.tsx +++ b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationHeader/EvaluationHeader.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import EvaluationHeader from './index'; const meta: Meta = { - title: 'Components/ApplicantModal/ApplicantEvalInfo/EvaluationHeader', + title: 'Organisms/ApplicantModal/ApplicantEvalInfo/EvaluationHeader', component: EvaluationHeader, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationHeader/index.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationHeader/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationHeader/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationHeader/index.tsx diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/EvaluationHeader/style.ts b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationHeader/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/EvaluationHeader/style.ts rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/EvaluationHeader/style.ts diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/constants.ts b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/constants.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/constants.ts rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/constants.ts diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/index.tsx b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/index.tsx similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/index.tsx rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/index.tsx diff --git a/frontend/src/components/appModal/ApplicantEvalInfo/style.ts b/frontend/src/components/ApplicantModal/ApplicantEvalInfo/style.ts similarity index 100% rename from frontend/src/components/appModal/ApplicantEvalInfo/style.ts rename to frontend/src/components/ApplicantModal/ApplicantEvalInfo/style.ts diff --git a/frontend/src/components/appModal/BaseModal/BaseModal.stories.tsx b/frontend/src/components/ApplicantModal/BaseModal/BaseModal.stories.tsx similarity index 97% rename from frontend/src/components/appModal/BaseModal/BaseModal.stories.tsx rename to frontend/src/components/ApplicantModal/BaseModal/BaseModal.stories.tsx index 56ec9be35..87a9245c0 100644 --- a/frontend/src/components/appModal/BaseModal/BaseModal.stories.tsx +++ b/frontend/src/components/ApplicantModal/BaseModal/BaseModal.stories.tsx @@ -4,7 +4,7 @@ import Button from '@components/_common/atoms/Button'; import BaseModal from '.'; const meta: Meta = { - title: 'Common/Modal/BaseModal', + title: 'Common/Atoms/BaseModal', component: BaseModal, parameters: { layout: 'centered', diff --git a/frontend/src/components/appModal/BaseModal/index.tsx b/frontend/src/components/ApplicantModal/BaseModal/index.tsx similarity index 100% rename from frontend/src/components/appModal/BaseModal/index.tsx rename to frontend/src/components/ApplicantModal/BaseModal/index.tsx diff --git a/frontend/src/components/appModal/BaseModal/styled.ts b/frontend/src/components/ApplicantModal/BaseModal/styled.ts similarity index 100% rename from frontend/src/components/appModal/BaseModal/styled.ts rename to frontend/src/components/ApplicantModal/BaseModal/styled.ts diff --git a/frontend/src/components/appModal/ModalHeader/index.tsx b/frontend/src/components/ApplicantModal/ModalHeader/index.tsx similarity index 86% rename from frontend/src/components/appModal/ModalHeader/index.tsx rename to frontend/src/components/ApplicantModal/ModalHeader/index.tsx index af61bfb68..54f750f5f 100644 --- a/frontend/src/components/appModal/ModalHeader/index.tsx +++ b/frontend/src/components/ApplicantModal/ModalHeader/index.tsx @@ -7,7 +7,7 @@ interface ModalHeaderProps { title: string; } -export default function ModalHeader({ title }: ModalHeaderProps) { +export default function ApplicatnModalHeader({ title }: ModalHeaderProps) { const { close } = useModal(); return ( diff --git a/frontend/src/components/appModal/ModalHeader/style.ts b/frontend/src/components/ApplicantModal/ModalHeader/style.ts similarity index 100% rename from frontend/src/components/appModal/ModalHeader/style.ts rename to frontend/src/components/ApplicantModal/ModalHeader/style.ts diff --git a/frontend/src/components/appModal/index.tsx b/frontend/src/components/ApplicantModal/index.tsx similarity index 91% rename from frontend/src/components/appModal/index.tsx rename to frontend/src/components/ApplicantModal/index.tsx index 9b3ca3080..e48dc6f4a 100644 --- a/frontend/src/components/appModal/index.tsx +++ b/frontend/src/components/ApplicantModal/index.tsx @@ -1,14 +1,16 @@ -import BaseModal from '@components/appModal/BaseModal'; import { useSpecificApplicantId } from '@contexts/SpecificApplicnatIdContext'; import { useSpecificProcessId } from '@contexts/SpecificProcessIdContext'; -import ApplicantBaseInfo from './ApplicantBaseInfo'; -import ModalHeader from './ModalHeader'; +import BaseModal from './BaseModal'; + +import ApplicantBaseInfo from './ApplicantBaseInfo'; +import ApplicatnModalHeader from './ModalHeader'; import QuestionSection from './ApplicantDetailInfo/QuestionSection'; -import S from './style'; import ApplicantEvalInfo from './ApplicantEvalInfo'; import EvaluationHeader from './ApplicantEvalInfo/EvaluationHeader'; +import S from './style'; + export default function ApplicantModal() { const { applicantId } = useSpecificApplicantId(); const { processId } = useSpecificProcessId(); @@ -18,7 +20,7 @@ export default function ApplicantModal() { - + diff --git a/frontend/src/components/appModal/style.ts b/frontend/src/components/ApplicantModal/style.ts similarity index 100% rename from frontend/src/components/appModal/style.ts rename to frontend/src/components/ApplicantModal/style.ts diff --git a/frontend/src/components/_common/atoms/Button/Button.stories.tsx b/frontend/src/components/_common/atoms/Button/Button.stories.tsx index 962da85c2..b26ffdb9b 100644 --- a/frontend/src/components/_common/atoms/Button/Button.stories.tsx +++ b/frontend/src/components/_common/atoms/Button/Button.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import Button from '.'; const meta = { - title: 'Common/Button/Button', + title: 'Common/Atoms/Button', component: Button, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/CheckBox/CheckBox.stories.tsx b/frontend/src/components/_common/atoms/CheckBox/CheckBox.stories.tsx index f5bd19878..cf6874a75 100644 --- a/frontend/src/components/_common/atoms/CheckBox/CheckBox.stories.tsx +++ b/frontend/src/components/_common/atoms/CheckBox/CheckBox.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import CheckBox from './index'; const meta: Meta = { - title: 'Common/CheckBox/CheckBox', + title: 'Common/Atoms/CheckBox', component: CheckBox, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/CopyToClipboard/CopyToClipboard.stories.tsx b/frontend/src/components/_common/atoms/CopyToClipboard/CopyToClipboard.stories.tsx index 28f238485..f10219c36 100644 --- a/frontend/src/components/_common/atoms/CopyToClipboard/CopyToClipboard.stories.tsx +++ b/frontend/src/components/_common/atoms/CopyToClipboard/CopyToClipboard.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import CopyToClipboard from '.'; const meta = { - title: 'Common/Button/CopyToClipboard', + title: 'Common/Atoms/CopyToClipboard', component: CopyToClipboard, parameters: { docs: { diff --git a/frontend/src/components/_common/atoms/DateInput/DateInput.stories.tsx b/frontend/src/components/_common/atoms/DateInput/DateInput.stories.tsx index 73d2b0111..ddf87ef82 100644 --- a/frontend/src/components/_common/atoms/DateInput/DateInput.stories.tsx +++ b/frontend/src/components/_common/atoms/DateInput/DateInput.stories.tsx @@ -4,7 +4,7 @@ import formatDate from '@utils/formatDate'; import DateInput from './index'; const meta: Meta = { - title: 'Common/Input/DateInput', + title: 'Common/Atoms/DateInput', component: DateInput, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/DropdownItem/DropdownItem.stories.tsx b/frontend/src/components/_common/atoms/DropdownItem/DropdownItem.stories.tsx index 10c392ac2..40d4854f7 100644 --- a/frontend/src/components/_common/atoms/DropdownItem/DropdownItem.stories.tsx +++ b/frontend/src/components/_common/atoms/DropdownItem/DropdownItem.stories.tsx @@ -4,7 +4,7 @@ import DropdownItem, { DropdownItemProps } from '.'; export default { component: DropdownItem, - title: 'Common/Dropdown/DropdownItem', + title: 'Common/Atoms/DropdownItem', } as Meta; const Template: StoryObj = { diff --git a/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx b/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx index a497bc117..aeca2345f 100644 --- a/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx +++ b/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx @@ -3,7 +3,7 @@ import EllipsisIcon from '@assets/icons/ellipsis.svg'; import IconButton from '.'; const meta = { - title: 'Common/Button/IconButton', + title: 'Common/Atoms/IconButton', component: IconButton, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/OpenInNewTab/OpenInNewTab.stories.tsx b/frontend/src/components/_common/atoms/OpenInNewTab/OpenInNewTab.stories.tsx index 079173dcc..9ff1162fa 100644 --- a/frontend/src/components/_common/atoms/OpenInNewTab/OpenInNewTab.stories.tsx +++ b/frontend/src/components/_common/atoms/OpenInNewTab/OpenInNewTab.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import OpenInNewTab from '.'; const meta = { - title: 'Common/Button/OpenInNewTab', + title: 'Common/Atoms/OpenInNewTab', component: OpenInNewTab, parameters: { docs: { diff --git a/frontend/src/components/_common/atoms/QuestionBox/QuestionBox.stories.tsx b/frontend/src/components/_common/atoms/QuestionBox/QuestionBox.stories.tsx index e93a6cfbe..596721e03 100644 --- a/frontend/src/components/_common/atoms/QuestionBox/QuestionBox.stories.tsx +++ b/frontend/src/components/_common/atoms/QuestionBox/QuestionBox.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import QuestionBox from '.'; const meta: Meta = { - title: 'Components/QuestionBox', + title: 'Common/Atoms/QuestionBox', component: QuestionBox, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/Radio/Radio.stories.tsx b/frontend/src/components/_common/atoms/Radio/Radio.stories.tsx index 19a5d62b4..9884503be 100644 --- a/frontend/src/components/_common/atoms/Radio/Radio.stories.tsx +++ b/frontend/src/components/_common/atoms/Radio/Radio.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import Radio from '.'; const meta: Meta = { - title: 'Common/Radio/Radio', + title: 'Common/Atoms/Radio', component: Radio, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/Spinner/Spinner.stories.tsx b/frontend/src/components/_common/atoms/Spinner/Spinner.stories.tsx index dc1b47c28..d21af67d8 100644 --- a/frontend/src/components/_common/atoms/Spinner/Spinner.stories.tsx +++ b/frontend/src/components/_common/atoms/Spinner/Spinner.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import Spinner from '.'; const meta = { - title: 'Common/Spinner', + title: 'Common/Atoms/Spinner', component: Spinner, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/TextEditor/TextEditor.stories.tsx b/frontend/src/components/_common/atoms/TextEditor/TextEditor.stories.tsx index 356bcebdb..c5e1b0a0e 100644 --- a/frontend/src/components/_common/atoms/TextEditor/TextEditor.stories.tsx +++ b/frontend/src/components/_common/atoms/TextEditor/TextEditor.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import TextEditor from '.'; const meta = { - title: 'Common/Input/TextEditor', + title: 'Common/Atoms/TextEditor', component: TextEditor, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/Toast/Toast.stories.tsx b/frontend/src/components/_common/atoms/Toast/Toast.stories.tsx index f41a85172..518cd6742 100644 --- a/frontend/src/components/_common/atoms/Toast/Toast.stories.tsx +++ b/frontend/src/components/_common/atoms/Toast/Toast.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import Toast from '.'; const meta: Meta = { - title: 'Common/Toast', + title: 'Common/Atoms/Toast', component: Toast, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/atoms/ToggleSwitch/ToggleSwitch.stories.tsx b/frontend/src/components/_common/atoms/ToggleSwitch/ToggleSwitch.stories.tsx index a91334563..9ca190745 100644 --- a/frontend/src/components/_common/atoms/ToggleSwitch/ToggleSwitch.stories.tsx +++ b/frontend/src/components/_common/atoms/ToggleSwitch/ToggleSwitch.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import ToggleSwitch from './index'; const meta: Meta = { - title: 'Common/ToggleSwitch', + title: 'Common/Atoms/ToggleSwitch', component: ToggleSwitch, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/Accordion/Accordion.stories.tsx b/frontend/src/components/_common/molecules/Accordion/Accordion.stories.tsx index f7856fb36..f36b627b4 100644 --- a/frontend/src/components/_common/molecules/Accordion/Accordion.stories.tsx +++ b/frontend/src/components/_common/molecules/Accordion/Accordion.stories.tsx @@ -3,7 +3,7 @@ import Accordion from './index'; import S from './style'; const meta: Meta = { - title: 'Common/Accordion', + title: 'Common/Molecules/Accordion', component: Accordion, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/CheckBoxOption/CheckBoxOption.stories.tsx b/frontend/src/components/_common/molecules/CheckBoxOption/CheckBoxOption.stories.tsx index 8c1303bc1..76dd94350 100644 --- a/frontend/src/components/_common/molecules/CheckBoxOption/CheckBoxOption.stories.tsx +++ b/frontend/src/components/_common/molecules/CheckBoxOption/CheckBoxOption.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import CheckBoxOption from './index'; const meta: Meta = { - title: 'Components/Recruitment/CheckBox/CheckBoxOption', + title: 'Common/Molecules/CheckBoxOption', component: CheckBoxOption, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/CheckboxLabelField/CheckboxLabelField.stories.tsx b/frontend/src/components/_common/molecules/CheckboxLabelField/CheckboxLabelField.stories.tsx index 8a9cb5107..0f8166144 100644 --- a/frontend/src/components/_common/molecules/CheckboxLabelField/CheckboxLabelField.stories.tsx +++ b/frontend/src/components/_common/molecules/CheckboxLabelField/CheckboxLabelField.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import CheckboxLabelField from './index'; const meta: Meta = { - title: 'Common/Checkbox/CheckboxLabelField', + title: 'Common/Molecules/CheckboxLabelField', component: CheckboxLabelField, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/Dropdown/Dropdown.stories.tsx b/frontend/src/components/_common/molecules/Dropdown/Dropdown.stories.tsx index 5247bac50..2c59debcb 100644 --- a/frontend/src/components/_common/molecules/Dropdown/Dropdown.stories.tsx +++ b/frontend/src/components/_common/molecules/Dropdown/Dropdown.stories.tsx @@ -4,7 +4,7 @@ import Dropdown, { DropdownProps } from '.'; export default { component: Dropdown, - title: 'Common/Dropdown/Dropdown', + title: 'Common/Molecules/Dropdown', } as Meta; const Template: StoryObj = { diff --git a/frontend/src/components/_common/molecules/InputField/InputField.stories.tsx b/frontend/src/components/_common/molecules/InputField/InputField.stories.tsx index deb60a99d..89b98d9c5 100644 --- a/frontend/src/components/_common/molecules/InputField/InputField.stories.tsx +++ b/frontend/src/components/_common/molecules/InputField/InputField.stories.tsx @@ -3,7 +3,7 @@ import { useState } from 'react'; import InputField from '.'; const meta = { - title: 'Common/Input/InputField', + title: 'Common/Molecules/InputField', component: InputField, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/PopOverMenu/PopOverMenu.stories.tsx b/frontend/src/components/_common/molecules/PopOverMenu/PopOverMenu.stories.tsx index 001af3cc4..fe4309aab 100644 --- a/frontend/src/components/_common/molecules/PopOverMenu/PopOverMenu.stories.tsx +++ b/frontend/src/components/_common/molecules/PopOverMenu/PopOverMenu.stories.tsx @@ -5,7 +5,7 @@ import PopOverMenu, { PopOverMenuProps } from '.'; export default { component: PopOverMenu, - title: 'Common/PopOverMenu/PopOverMenu', + title: 'Common/Molecules/PopOverMenu', args: { isOpen: true }, } as Meta; diff --git a/frontend/src/components/_common/molecules/RadioField/RadioField.stories.tsx b/frontend/src/components/_common/molecules/RadioField/RadioField.stories.tsx index 85ddc8d3a..262cc712a 100644 --- a/frontend/src/components/_common/molecules/RadioField/RadioField.stories.tsx +++ b/frontend/src/components/_common/molecules/RadioField/RadioField.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RadioField from '.'; const meta: Meta = { - title: 'Common/Radio/RadioField', + title: 'Common/Molecules/RadioField', component: RadioField, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx b/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx index 3e8652923..e28231a62 100644 --- a/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx +++ b/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RadioInputOption from '.'; const meta: Meta = { - title: 'Components/Recruitment/Radio/RadioInputOption', + title: 'Organisms/Molecules/RadioInputOption', component: RadioInputOption, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/RadioLabelField/RadioLabelField.stories.tsx b/frontend/src/components/_common/molecules/RadioLabelField/RadioLabelField.stories.tsx index c37b8ca22..8661caefe 100644 --- a/frontend/src/components/_common/molecules/RadioLabelField/RadioLabelField.stories.tsx +++ b/frontend/src/components/_common/molecules/RadioLabelField/RadioLabelField.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RadioLabelField from './index'; const meta: Meta = { - title: 'Common/Radio/RadioLabelField', + title: 'Common/Molecules/RadioLabelField', component: RadioLabelField, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/RadioOption/RadioOption.stories.tsx b/frontend/src/components/_common/molecules/RadioOption/RadioOption.stories.tsx index dbe01b3ed..f4ac73268 100644 --- a/frontend/src/components/_common/molecules/RadioOption/RadioOption.stories.tsx +++ b/frontend/src/components/_common/molecules/RadioOption/RadioOption.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RadioOption from '.'; const meta: Meta = { - title: 'Common/Radio/RadioOption', + title: 'Common/Molecules/RadioOption', component: RadioOption, parameters: { layout: 'centered', diff --git a/frontend/src/components/_common/molecules/TextField/TextField.stories.tsx b/frontend/src/components/_common/molecules/TextField/TextField.stories.tsx index 3449ba086..be456ee63 100644 --- a/frontend/src/components/_common/molecules/TextField/TextField.stories.tsx +++ b/frontend/src/components/_common/molecules/TextField/TextField.stories.tsx @@ -3,7 +3,7 @@ import { useState } from 'react'; import TextField from '.'; const meta = { - title: 'Common/Input/TextField', + title: 'Common/Molecules/TextField', component: TextField, parameters: { layout: 'centered', diff --git a/frontend/src/components/applyManagement/ApplyManagement.stories.tsx b/frontend/src/components/applyManagement/ApplyManagement.stories.tsx index 3fa760117..084b47c96 100644 --- a/frontend/src/components/applyManagement/ApplyManagement.stories.tsx +++ b/frontend/src/components/applyManagement/ApplyManagement.stories.tsx @@ -4,7 +4,7 @@ import { reactRouterParameters } from 'storybook-addon-remix-react-router'; import ApplyManagement from './index'; const meta: Meta = { - title: 'Components/Dashboard/ApplyManagement', + title: 'Organisms/ApplyManagement', component: ApplyManagement, parameters: { layout: 'centered', diff --git a/frontend/src/components/dashboard/ApplicantCard/ApplicantCard.stories.tsx b/frontend/src/components/dashboard/ApplicantCard/ApplicantCard.stories.tsx index 7481a3a1c..686b9e861 100644 --- a/frontend/src/components/dashboard/ApplicantCard/ApplicantCard.stories.tsx +++ b/frontend/src/components/dashboard/ApplicantCard/ApplicantCard.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import ApplicantCard from '.'; const meta = { - title: 'Components/ApplicantCard', + title: 'Organisms/Dashboard/ApplicantCard', component: ApplicantCard, parameters: { layout: 'centered', diff --git a/frontend/src/components/dashboard/DashboardCreate/Apply/Apply.stories.tsx b/frontend/src/components/dashboard/DashboardCreate/Apply.stories.tsx similarity index 96% rename from frontend/src/components/dashboard/DashboardCreate/Apply/Apply.stories.tsx rename to frontend/src/components/dashboard/DashboardCreate/Apply.stories.tsx index f59e5b9b9..bcdddd37a 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Apply/Apply.stories.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Apply.stories.tsx @@ -2,10 +2,10 @@ import type { Meta, StoryObj } from '@storybook/react'; import { useState } from '@storybook/preview-api'; import { Question } from '@customTypes/dashboard'; -import Apply from './index'; +import Apply from './Apply/index'; const meta: Meta = { - title: 'Components/Dashboard/Create/Apply', + title: 'Organisms/Dashboard/DashboardCreate/Apply', component: Apply, parameters: { layout: 'centered', diff --git a/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionBuilder/QuestionBuilder.stories.tsx b/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionBuilder/QuestionBuilder.stories.tsx index c30c7d463..9b7359fc7 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionBuilder/QuestionBuilder.stories.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionBuilder/QuestionBuilder.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import QuestionBuilder from './index'; const meta: Meta = { - title: 'Components/Dashboard/Create/Apply/QuestionBuilder', + title: 'Organisms/Dashboard/DashboardCreate/Apply/QuestionBuilder', component: QuestionBuilder, parameters: { layout: 'centered', diff --git a/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionChoicesBuilder/QuestionChoicesBuilder.stories.tsx b/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionChoicesBuilder/QuestionChoicesBuilder.stories.tsx index e5e366c29..294fd7798 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionChoicesBuilder/QuestionChoicesBuilder.stories.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionChoicesBuilder/QuestionChoicesBuilder.stories.tsx @@ -5,7 +5,7 @@ import { QuestionOptionValue } from '@customTypes/dashboard'; import QuestionChoicesBuilder from './index'; const meta: Meta = { - title: 'Components/Dashboard/Create/Apply/QuestionChoicesBuilder', + title: 'Organisms/Dashboard/DashboardCreate/Apply/QuestionChoicesBuilder', component: QuestionChoicesBuilder, parameters: { layout: 'centered', diff --git a/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionController/QuestionController.stories.tsx b/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionController/QuestionController.stories.tsx index e9815a051..9ea850cef 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionController/QuestionController.stories.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Apply/QuestionController/QuestionController.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import QuestionController from './index'; const meta: Meta = { - title: 'Components/Dashboard/Create/Apply/QuestionController', + title: 'Organisms/Dashboard/DashboardCreate/Apply/QuestionController', component: QuestionController, parameters: { layout: 'centered', diff --git a/frontend/src/components/dashboard/DashboardCreate/Finish/Finish.stories.tsx b/frontend/src/components/dashboard/DashboardCreate/Finish/Finish.stories.tsx index 8dfbeff73..62447cecb 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Finish/Finish.stories.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Finish/Finish.stories.tsx @@ -3,7 +3,7 @@ import { reactRouterParameters, withRouter } from 'storybook-addon-remix-react-r import Finish from '.'; const meta: Meta = { - title: 'Components/Dashboard/Create/Finish', + title: 'Organisms/Dashboard/Create/Finish', component: Finish, decorators: [withRouter], parameters: { diff --git a/frontend/src/components/dashboard/DashboardCreate/Recruitment/Recruitment.stories.tsx b/frontend/src/components/dashboard/DashboardCreate/Recruitment/Recruitment.stories.tsx index 4c6bc33f5..a9196d0ff 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Recruitment/Recruitment.stories.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Recruitment/Recruitment.stories.tsx @@ -5,7 +5,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import Recruitment from './index'; const meta: Meta = { - title: 'Components/Dashboard/Create/Recruitment', + title: 'Organisms/Dashboard/Create/Recruitment', component: Recruitment, parameters: { layout: 'centered', diff --git a/frontend/src/components/dashboard/DashboardCreate/SharePost/SharePost.stories.tsx b/frontend/src/components/dashboard/DashboardCreate/SharePost/SharePost.stories.tsx index 1b7ae252d..0aabc4245 100644 --- a/frontend/src/components/dashboard/DashboardCreate/SharePost/SharePost.stories.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/SharePost/SharePost.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import SharePost from '.'; const meta = { - title: 'Components/Dashboard/Create/Finish/SharePost', + title: 'Organisms/Dashboard/Create/Finish/SharePost', component: SharePost, parameters: { docs: { diff --git a/frontend/src/components/dashboard/DashboardSidebar/DashboardSidebar.stories.tsx b/frontend/src/components/dashboard/DashboardSidebar/DashboardSidebar.stories.tsx index 75b2b1b88..53b06edf3 100644 --- a/frontend/src/components/dashboard/DashboardSidebar/DashboardSidebar.stories.tsx +++ b/frontend/src/components/dashboard/DashboardSidebar/DashboardSidebar.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import DashboardSidebar from '.'; const meta: Meta = { - title: 'Components/Dashboard/Sidebar', + title: 'Organisms/Dashboard/Sidebar', component: DashboardSidebar, parameters: { layout: 'centered', diff --git a/frontend/src/components/dashboard/ProcessBoard/index.tsx b/frontend/src/components/dashboard/ProcessBoard/index.tsx index 4728075cf..cdbecd22a 100644 --- a/frontend/src/components/dashboard/ProcessBoard/index.tsx +++ b/frontend/src/components/dashboard/ProcessBoard/index.tsx @@ -1,5 +1,5 @@ import { Process } from '@customTypes/process'; -import ApplicantModal from '@components/appModal'; +import ApplicantModal from '@components/ApplicantModal'; import ProcessColumn from '../ProcessColumn'; import S from './style'; diff --git a/frontend/src/components/dashboard/ProcessColumn/ProcessColumn.stories.tsx b/frontend/src/components/dashboard/ProcessColumn/ProcessColumn.stories.tsx index eb99147e2..a3ba899be 100644 --- a/frontend/src/components/dashboard/ProcessColumn/ProcessColumn.stories.tsx +++ b/frontend/src/components/dashboard/ProcessColumn/ProcessColumn.stories.tsx @@ -5,7 +5,7 @@ import { SpecificProcessIdProvider } from '@contexts/SpecificProcessIdContext'; import ProcessColumn from './index'; const meta: Meta = { - title: 'Components/ProcessColumn', + title: 'Organisms/ProcessColumn', component: ProcessColumn, parameters: { layout: 'fullscreen', diff --git a/frontend/src/components/dashboard/ProcessColumn/ProcessDescription/ProcessDescription.stories.tsx b/frontend/src/components/dashboard/ProcessColumn/ProcessDescription/ProcessDescription.stories.tsx index b2ec5678d..572c16d33 100644 --- a/frontend/src/components/dashboard/ProcessColumn/ProcessDescription/ProcessDescription.stories.tsx +++ b/frontend/src/components/dashboard/ProcessColumn/ProcessDescription/ProcessDescription.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import ProcessDescription from './index'; const meta: Meta = { - title: 'Components/ProcessColumn/ProcessDescription', + title: 'Organisms/ProcessColumn/ProcessDescription', component: ProcessDescription, parameters: { layout: 'centered', diff --git a/frontend/src/components/processManagement/ProcessAddButton/ProcessAddButton.stories.tsx b/frontend/src/components/processManagement/ProcessAddButton/ProcessAddButton.stories.tsx index 1fe51c0c0..645e1e39b 100644 --- a/frontend/src/components/processManagement/ProcessAddButton/ProcessAddButton.stories.tsx +++ b/frontend/src/components/processManagement/ProcessAddButton/ProcessAddButton.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import ProcessAddButton from '.'; const meta = { - title: 'Common/ProcessManagement/ProcessAddButton', + title: 'Organisms/ProcessManagement/ProcessAddButton', component: ProcessAddButton, parameters: { layout: 'centered', diff --git a/frontend/src/components/processManagement/ProcessAddForm/ProcessAddForm.stories.tsx b/frontend/src/components/processManagement/ProcessAddForm/ProcessAddForm.stories.tsx index e0d6fba1d..7c3374f65 100644 --- a/frontend/src/components/processManagement/ProcessAddForm/ProcessAddForm.stories.tsx +++ b/frontend/src/components/processManagement/ProcessAddForm/ProcessAddForm.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import ProcessAddForm from '.'; const meta = { - title: 'Components/ProcessManagement/ProcessAddForm', + title: 'Organisms/ProcessManagement/ProcessAddForm', component: ProcessAddForm, parameters: { layout: 'centered', diff --git a/frontend/src/components/processManagement/ProcessModifyForm/ProcessModifyForm.stories.tsx b/frontend/src/components/processManagement/ProcessModifyForm/ProcessModifyForm.stories.tsx index 3979dec12..a23b0d394 100644 --- a/frontend/src/components/processManagement/ProcessModifyForm/ProcessModifyForm.stories.tsx +++ b/frontend/src/components/processManagement/ProcessModifyForm/ProcessModifyForm.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import ProcessModifyForm from '.'; const meta = { - title: 'Components/ProcessManagement/ProcessModifyForm', + title: 'Organisms/ProcessManagement/ProcessModifyForm', component: ProcessModifyForm, parameters: { layout: 'centered', diff --git a/frontend/src/components/recruitment/CheckBoxField/CheckBoxField.stories.tsx b/frontend/src/components/recruitment/CheckBoxField/CheckBoxField.stories.tsx index 28380726a..bf167b88d 100644 --- a/frontend/src/components/recruitment/CheckBoxField/CheckBoxField.stories.tsx +++ b/frontend/src/components/recruitment/CheckBoxField/CheckBoxField.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import CheckBoxField from './index'; const meta: Meta = { - title: 'Components/Recruitment/CheckBox/CheckBoxField', + title: 'Organisms/Recruitment/CheckBox/CheckBoxField', component: CheckBoxField, parameters: { layout: 'centered', diff --git a/frontend/src/components/recruitment/RadioInputField/RadioInputField.stories.tsx b/frontend/src/components/recruitment/RadioInputField/RadioInputField.stories.tsx index 4ec522228..4817bfa6a 100644 --- a/frontend/src/components/recruitment/RadioInputField/RadioInputField.stories.tsx +++ b/frontend/src/components/recruitment/RadioInputField/RadioInputField.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RadioInputField from './index'; const meta: Meta = { - title: 'Components/Recruitment/Radio/RadioInputField', + title: 'Organisms/Recruitment/Radio/RadioInputField', component: RadioInputField, parameters: { layout: 'centered', diff --git a/frontend/src/components/recruitment/RecruitmentCard/RecruitmentCard.stories.tsx b/frontend/src/components/recruitment/RecruitmentCard/RecruitmentCard.stories.tsx index 938ad6032..b45cb3a5b 100644 --- a/frontend/src/components/recruitment/RecruitmentCard/RecruitmentCard.stories.tsx +++ b/frontend/src/components/recruitment/RecruitmentCard/RecruitmentCard.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RecruitmentCard from '.'; const meta = { - title: 'Components/Recruitment/RecruitmentCard', + title: 'Organisms/Recruitment/RecruitmentCard', component: RecruitmentCard, parameters: { layout: 'centered', diff --git a/frontend/src/components/recruitment/RecruitmentCardStat/RecruitmentCardStat.stories.tsx b/frontend/src/components/recruitment/RecruitmentCardStat/RecruitmentCardStat.stories.tsx index af781f136..aa90a2c73 100644 --- a/frontend/src/components/recruitment/RecruitmentCardStat/RecruitmentCardStat.stories.tsx +++ b/frontend/src/components/recruitment/RecruitmentCardStat/RecruitmentCardStat.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RecruitmentCardStat from '.'; const meta = { - title: 'Components/Recruitment/RecruitmentCard/RecruitmentCardStat', + title: 'Organisms/Recruitment/RecruitmentCard/RecruitmentCardStat', component: RecruitmentCardStat, parameters: { layout: 'centered', diff --git a/frontend/src/components/recruitment/RecruitmentSidebar/RecruitmentSidebar.stories.tsx b/frontend/src/components/recruitment/RecruitmentSidebar/RecruitmentSidebar.stories.tsx index 35cddc6c3..23f0e17ac 100644 --- a/frontend/src/components/recruitment/RecruitmentSidebar/RecruitmentSidebar.stories.tsx +++ b/frontend/src/components/recruitment/RecruitmentSidebar/RecruitmentSidebar.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RecruitmentSidebar from './index'; const meta: Meta = { - title: 'Components/Recruitment/RecruitmentSidebar', + title: 'Organisms/Recruitment/RecruitmentSidebar', component: RecruitmentSidebar, parameters: { layout: 'centered', diff --git a/frontend/src/components/recruitmentPost/CustomQuestion/index.tsx b/frontend/src/components/recruitmentPost/CustomQuestion/index.tsx index 0124b1ce1..4aa340048 100644 --- a/frontend/src/components/recruitmentPost/CustomQuestion/index.tsx +++ b/frontend/src/components/recruitmentPost/CustomQuestion/index.tsx @@ -1,7 +1,7 @@ import TextField from '@components/_common/molecules/TextField'; import InputField from '@components/_common/molecules/InputField'; -import RadioLabelField from '@components/_common/atoms/RadioLabelField'; -import CheckboxLabelField from '@components/_common/CheckboxLabelField'; +import RadioLabelField from '@components/_common/molecules/RadioLabelField'; +import CheckboxLabelField from '@components/_common/molecules/CheckboxLabelField'; import { Question } from '@customTypes/apply'; import { ChangeEventHandler } from 'react'; import { QUESTION_INPUT_LENGTH } from '@constants/constants'; diff --git a/frontend/src/components/recruitmentPost/RecruitmentPostTab/index.tsx b/frontend/src/components/recruitmentPost/RecruitmentPostTab/index.tsx index 0196d9b0e..e89d6d7b3 100644 --- a/frontend/src/components/recruitmentPost/RecruitmentPostTab/index.tsx +++ b/frontend/src/components/recruitmentPost/RecruitmentPostTab/index.tsx @@ -1,5 +1,5 @@ -import Tab from '@components/_common/atoms/Tab'; -import useTab from '@components/_common/atoms/Tab/useTab'; +import Tab from '@components/_common/molecules/Tab'; +import useTab from '@components/_common/molecules/Tab/useTab'; import { RECRUITMENT_POST_MENUS } from '@constants/constants'; import { applyQueries } from '@hooks/apply'; diff --git a/frontend/src/domain/validations/evaluation.ts b/frontend/src/domain/validations/evaluation.ts index 655570d54..27d55c353 100644 --- a/frontend/src/domain/validations/evaluation.ts +++ b/frontend/src/domain/validations/evaluation.ts @@ -1,4 +1,4 @@ -import { EVALUATION_CONTENT_MAX_LENGTH } from '@components/appModal/ApplicantEvalInfo/constants'; +import { EVALUATION_CONTENT_MAX_LENGTH } from '@components/ApplicantModal/ApplicantEvalInfo/constants'; import ValidationError from '@utils/errors/ValidationError'; export const validateEvalContent = (title: string) => { diff --git a/frontend/src/pages/DashboardLayout/index.tsx b/frontend/src/pages/DashboardLayout/index.tsx index baeb5174b..0bdc94be5 100644 --- a/frontend/src/pages/DashboardLayout/index.tsx +++ b/frontend/src/pages/DashboardLayout/index.tsx @@ -1,4 +1,4 @@ -import DashboardSidebar from '@components/_common/dashboard/DashboardSidebar'; +import DashboardSidebar from '@components/dashboard/DashboardSidebar'; import useGetDashboards from '@hooks/useGetDashboards'; import { Outlet, useParams } from 'react-router-dom'; import S from './style'; From 5894469350b8fe4b8bb6e4d32b109adb19b04b0a Mon Sep 17 00:00:00 2001 From: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:38:28 +0900 Subject: [PATCH 4/7] =?UTF-8?q?chore:=20=EA=B2=BD=EB=A1=9C=20=EC=98=A4?= =?UTF-8?q?=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../postManagement/PostManageBoard/PostManageBoard.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/postManagement/PostManageBoard/PostManageBoard.stories.tsx b/frontend/src/components/postManagement/PostManageBoard/PostManageBoard.stories.tsx index b3685e931..52b24fccc 100644 --- a/frontend/src/components/postManagement/PostManageBoard/PostManageBoard.stories.tsx +++ b/frontend/src/components/postManagement/PostManageBoard/PostManageBoard.stories.tsx @@ -4,7 +4,7 @@ import PostManageBoard from '.'; export default { component: PostManageBoard, - title: 'common/molecules/postManagement/PostManageBoard', + title: 'common/Molecules/postManagement/PostManageBoard', parameters: { docs: { description: { From 2d2e16d761afb324079cdb468d73716bacecce71 Mon Sep 17 00:00:00 2001 From: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:16:05 +0900 Subject: [PATCH 5/7] =?UTF-8?q?feat:=20ChevronButton=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_common/atoms/ChevronButton/index.tsx | 28 ------------------- .../_common/atoms/ChevronButton/style.ts | 17 ----------- .../_common/molecules/Accordion/index.tsx | 8 ++---- .../_common/molecules/Dropdown/index.tsx | 12 ++++---- .../_common/molecules/Dropdown/style.ts | 2 +- .../dashboard/DashboardCreate/Apply/index.tsx | 17 ++++------- .../dashboard/DashboardCreate/Apply/style.ts | 6 ++-- .../DashboardCreate/Finish/index.tsx | 7 ++--- .../DashboardCreate/Recruitment/index.tsx | 7 ++--- 9 files changed, 23 insertions(+), 81 deletions(-) delete mode 100644 frontend/src/components/_common/atoms/ChevronButton/index.tsx delete mode 100644 frontend/src/components/_common/atoms/ChevronButton/style.ts diff --git a/frontend/src/components/_common/atoms/ChevronButton/index.tsx b/frontend/src/components/_common/atoms/ChevronButton/index.tsx deleted file mode 100644 index 3c096ab97..000000000 --- a/frontend/src/components/_common/atoms/ChevronButton/index.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import chevronLeft from '@assets/images/chevronLeft.svg'; -import chevronRight from '@assets/images/chevronRight.svg'; -import chevronUp from '@assets/images/chevronUp.svg'; -import chevronDown from '@assets/images/chevronDown.svg'; - -import S from './style'; - -interface ChevronButtonProps { - direction: 'left' | 'right' | 'up' | 'down'; - size: 'sm' | 'md' | 'lg'; -} - -const iconMap = { - left: chevronLeft, - right: chevronRight, - up: chevronUp, - down: chevronDown, -}; - -export default function ChevronButton({ direction, size }: ChevronButtonProps) { - return ( - - ); -} diff --git a/frontend/src/components/_common/atoms/ChevronButton/style.ts b/frontend/src/components/_common/atoms/ChevronButton/style.ts deleted file mode 100644 index bde27bf25..000000000 --- a/frontend/src/components/_common/atoms/ChevronButton/style.ts +++ /dev/null @@ -1,17 +0,0 @@ -import styled from '@emotion/styled'; - -const heightStyle = { - sm: '1.2rem', - md: '2.0rem', - lg: '3.2rem', -}; - -const Image = styled.img<{ size: 'sm' | 'md' | 'lg' }>` - height: ${({ size }) => heightStyle[size]}; - aspect-ratio: 1.2; -`; -const S = { - Image, -}; - -export default S; diff --git a/frontend/src/components/_common/molecules/Accordion/index.tsx b/frontend/src/components/_common/molecules/Accordion/index.tsx index 758597fa8..9971c830b 100644 --- a/frontend/src/components/_common/molecules/Accordion/index.tsx +++ b/frontend/src/components/_common/molecules/Accordion/index.tsx @@ -1,6 +1,5 @@ -import ChevronButton from '@components/_common/atoms/ChevronButton'; import React, { useState } from 'react'; -import { HiOutlineClipboardList } from 'react-icons/hi'; +import { HiChevronDown, HiChevronUp, HiOutlineClipboardList } from 'react-icons/hi'; import S from './style'; @@ -24,10 +23,7 @@ function Accordion({ title, children }: AccordionProps) { {title} - + {isOpen ? : } {isOpen && {children}} diff --git a/frontend/src/components/_common/molecules/Dropdown/index.tsx b/frontend/src/components/_common/molecules/Dropdown/index.tsx index dd8dbcad7..3be815296 100644 --- a/frontend/src/components/_common/molecules/Dropdown/index.tsx +++ b/frontend/src/components/_common/molecules/Dropdown/index.tsx @@ -1,7 +1,7 @@ import { useState, useRef, useEffect } from 'react'; -import ChevronButton from '@components/_common/atoms/ChevronButton'; import { DropdownListItem } from '@customTypes/common'; import DropdownItem from '@components/_common/atoms/DropdownItem'; +import { HiChevronDown } from 'react-icons/hi'; import S from './style'; export interface DropdownProps { @@ -48,6 +48,11 @@ export default function Dropdown({ setIsOpen(false); }; + const sizeObj: Record = { + sm: 24, + md: 36, + }; + return ( {selected || 'Default'} - + {isOpen && ( diff --git a/frontend/src/components/_common/molecules/Dropdown/style.ts b/frontend/src/components/_common/molecules/Dropdown/style.ts index 86acbf6c5..81d1044c7 100644 --- a/frontend/src/components/_common/molecules/Dropdown/style.ts +++ b/frontend/src/components/_common/molecules/Dropdown/style.ts @@ -31,7 +31,7 @@ const Header = styled.div<{ isOpen: boolean; size: 'sm' | 'md' }>` justify-content: space-between; align-items: center; - padding: ${({ size }) => (size === 'md' ? '16px 24px' : '8px 12px')}; + padding: ${({ size }) => (size === 'md' ? '16px 24px' : '12px 4px 12px 8px ')}; border: 1px solid ${({ theme }) => theme.baseColors.grayscale[400]}; diff --git a/frontend/src/components/dashboard/DashboardCreate/Apply/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Apply/index.tsx index 45241ff5c..b0f1e9d41 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Apply/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Apply/index.tsx @@ -1,9 +1,8 @@ -import { HiOutlinePlusCircle } from 'react-icons/hi'; +import { HiChevronLeft, HiChevronRight, HiOutlinePlusCircle } from 'react-icons/hi'; import { Question, QuestionOptionValue } from '@customTypes/dashboard'; import { APPLY_QUESTION_HEADER, DEFAULT_QUESTIONS, MAX_QUESTION_LENGTH } from '@constants/constants'; import Button from '@components/_common/atoms/Button'; -import ChevronButton from '@components/_common/atoms/ChevronButton'; import QuestionBuilder from './QuestionBuilder'; import S from './style'; @@ -102,11 +101,8 @@ export default function Apply({ color="white" > - - 이전 + + 이전 diff --git a/frontend/src/components/dashboard/DashboardCreate/Apply/style.ts b/frontend/src/components/dashboard/DashboardCreate/Apply/style.ts index 5e0ecc86b..efcb289ee 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Apply/style.ts +++ b/frontend/src/components/dashboard/DashboardCreate/Apply/style.ts @@ -110,9 +110,10 @@ const ButtonContent = styled.div` display: flex; justify-content: center; align-items: center; +`; - padding: 0 0.4rem; - gap: 0.4rem; +const ButtonContentText = styled.div` + padding: 0 0.8rem; `; const S = { @@ -129,6 +130,7 @@ const S = { StepButtonsContainer, StepButton, ButtonContent, + ButtonContentText, }; export default S; diff --git a/frontend/src/components/dashboard/DashboardCreate/Finish/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Finish/index.tsx index d540f3f95..165de9b13 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Finish/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Finish/index.tsx @@ -1,8 +1,8 @@ import Button from '@components/_common/atoms/Button'; -import ChevronButton from '@components/_common/atoms/ChevronButton'; import { routes } from '@router/path'; import { useNavigate } from 'react-router-dom'; import { DOMAIN_URL } from '@constants/constants'; +import { HiChevronRight } from 'react-icons/hi'; import SharePost from '../SharePost'; import S from './style'; @@ -30,10 +30,7 @@ export default function Finish({ dashboardId, applyFormId }: FinishProps) { > 공고로 이동 - + diff --git a/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx b/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx index 5b4d89d5b..8c46ab0f1 100644 --- a/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx +++ b/frontend/src/components/dashboard/DashboardCreate/Recruitment/index.tsx @@ -5,8 +5,8 @@ import { RecruitmentInfoState } from '@customTypes/dashboard'; import formatDate from '@utils/formatDate'; import useForm from '@hooks/utils/useForm'; +import { HiChevronRight } from 'react-icons/hi'; import Button from '@components/_common/atoms/Button'; -import ChevronButton from '@components/_common/atoms/ChevronButton'; import DateInput from '@components/_common/atoms/DateInput'; import InputField from '@components/_common/molecules/InputField'; import TextEditor from '@components/_common/atoms/TextEditor'; @@ -135,10 +135,7 @@ export default function Recruitment({ recruitmentInfoState, setRecruitmentInfoSt > 다음 - + From f2d47a925e28c6eeed9e06f67ca49d13ee212119 Mon Sep 17 00:00:00 2001 From: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:22:26 +0900 Subject: [PATCH 6/7] =?UTF-8?q?chore:=20ellipsis=20svg=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=20=EB=B0=8F=20chevron=20svg=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/icons/ellipsis.svg | 5 ----- frontend/src/assets/icons/index.ts | 1 - frontend/src/assets/images/chevronDown.svg | 3 --- frontend/src/assets/images/chevronLeft.svg | 4 ---- frontend/src/assets/images/chevronRight.svg | 3 --- frontend/src/assets/images/chevronUp.svg | 3 --- frontend/src/assets/images/ellipsis.svg | 5 ----- .../_common/atoms/IconButton/IconButton.stories.tsx | 10 +++------- .../src/components/dashboard/ApplicantCard/index.tsx | 7 ++----- 9 files changed, 5 insertions(+), 36 deletions(-) delete mode 100644 frontend/src/assets/icons/ellipsis.svg delete mode 100644 frontend/src/assets/icons/index.ts delete mode 100644 frontend/src/assets/images/chevronDown.svg delete mode 100644 frontend/src/assets/images/chevronLeft.svg delete mode 100644 frontend/src/assets/images/chevronRight.svg delete mode 100644 frontend/src/assets/images/chevronUp.svg delete mode 100644 frontend/src/assets/images/ellipsis.svg diff --git a/frontend/src/assets/icons/ellipsis.svg b/frontend/src/assets/icons/ellipsis.svg deleted file mode 100644 index 86184067c..000000000 --- a/frontend/src/assets/icons/ellipsis.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/frontend/src/assets/icons/index.ts b/frontend/src/assets/icons/index.ts deleted file mode 100644 index 82fa63bac..000000000 --- a/frontend/src/assets/icons/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as EllipsisIcon } from './ellipsis.svg'; diff --git a/frontend/src/assets/images/chevronDown.svg b/frontend/src/assets/images/chevronDown.svg deleted file mode 100644 index 3324d066b..000000000 --- a/frontend/src/assets/images/chevronDown.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/frontend/src/assets/images/chevronLeft.svg b/frontend/src/assets/images/chevronLeft.svg deleted file mode 100644 index f8104feb2..000000000 --- a/frontend/src/assets/images/chevronLeft.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/frontend/src/assets/images/chevronRight.svg b/frontend/src/assets/images/chevronRight.svg deleted file mode 100644 index 7ea05d75c..000000000 --- a/frontend/src/assets/images/chevronRight.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/frontend/src/assets/images/chevronUp.svg b/frontend/src/assets/images/chevronUp.svg deleted file mode 100644 index 450762431..000000000 --- a/frontend/src/assets/images/chevronUp.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/frontend/src/assets/images/ellipsis.svg b/frontend/src/assets/images/ellipsis.svg deleted file mode 100644 index 8130ea4a8..000000000 --- a/frontend/src/assets/images/ellipsis.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx b/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx index aeca2345f..82ddbaade 100644 --- a/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx +++ b/frontend/src/components/_common/atoms/IconButton/IconButton.stories.tsx @@ -1,5 +1,6 @@ import type { Meta, StoryObj } from '@storybook/react'; -import EllipsisIcon from '@assets/icons/ellipsis.svg'; +import { HiEllipsisVertical } from 'react-icons/hi2'; + import IconButton from '.'; const meta = { @@ -45,12 +46,7 @@ const meta = { control: { type: 'select' }, options: ['Ellipsis'], mapping: { - Ellipsis: ( - 더보기 아이콘 버튼 - ), + Ellipsis: , }, table: { type: { summary: 'React.ReactNode' }, diff --git a/frontend/src/components/dashboard/ApplicantCard/index.tsx b/frontend/src/components/dashboard/ApplicantCard/index.tsx index 3c2d9a5a8..6b363961a 100644 --- a/frontend/src/components/dashboard/ApplicantCard/index.tsx +++ b/frontend/src/components/dashboard/ApplicantCard/index.tsx @@ -1,8 +1,8 @@ import { HiOutlineClock, HiOutlineChat } from 'react-icons/hi'; +import { HiEllipsisVertical } from 'react-icons/hi2'; import { useState, useRef, useEffect } from 'react'; -import EllipsisIcon from '@assets/icons/ellipsis.svg'; import { PopOverMenuItem } from '@customTypes/common'; import IconButton from '@components/_common/atoms/IconButton'; @@ -99,10 +99,7 @@ export default function ApplicantCard({ onClick={handleClickPopOverButton} disabled={isRejected} > - 심사단계 이동 버튼 아이콘 + Date: Fri, 13 Sep 2024 17:23:59 +0900 Subject: [PATCH 7/7] =?UTF-8?q?chore:=20=EC=8A=A4=ED=86=A0=EB=A6=AC?= =?UTF-8?q?=EB=B6=81=20RadioInputOption=20=EA=B2=BD=EB=A1=9C=20=EC=9E=AC?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../molecules/RadioInputOption/RadioInputOption.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx b/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx index e28231a62..918cc7b33 100644 --- a/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx +++ b/frontend/src/components/_common/molecules/RadioInputOption/RadioInputOption.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react'; import RadioInputOption from '.'; const meta: Meta = { - title: 'Organisms/Molecules/RadioInputOption', + title: 'Common/Molecules/RadioInputOption', component: RadioInputOption, parameters: { layout: 'centered',