-
추천 서비스
+
추천 서비스
-
{service.serviceName}
+
{service.serviceName}
))}
diff --git a/src/pages/AllowedServicePage/CategoryAllowedService/BoxAllowedServiceItem/BoxAllowedServiceItem.tsx b/src/pages/AllowedServicePage/CategoryAllowedService/BoxAllowedServiceItem/BoxAllowedServiceItem.tsx
index a9a507cd..86d2c046 100644
--- a/src/pages/AllowedServicePage/CategoryAllowedService/BoxAllowedServiceItem/BoxAllowedServiceItem.tsx
+++ b/src/pages/AllowedServicePage/CategoryAllowedService/BoxAllowedServiceItem/BoxAllowedServiceItem.tsx
@@ -1,4 +1,4 @@
-import Dropdown from '@/shared/components/Dropdown';
+import Dropdown from '@/shared/components/Dropdown/Dropdown';
import IconMeatBall from '@/shared/assets/svgs/todo_meatball_default.svg?react';
diff --git a/src/pages/HomePage/BoxCategory/BoxCategory.tsx b/src/pages/HomePage/BoxCategory/BoxCategory.tsx
index 3f1f7c41..f30a1ec3 100644
--- a/src/pages/HomePage/BoxCategory/BoxCategory.tsx
+++ b/src/pages/HomePage/BoxCategory/BoxCategory.tsx
@@ -20,7 +20,7 @@ import BoxTodoInput from './BoxTodoInput/BoxTodoInput';
import StatusDefaultBoxCategory from './StatusDefaultBoxCategory/StatusDefaultBoxCategory';
import { useCreateTodo } from './hooks/useCreateTodo';
-const Calendar = lazy(() => import('@/shared/components/Calendar'));
+const Calendar = lazy(() => import('@/shared/components/Calendar/Calendar'));
interface BoxCategoryProps {
id: number;
@@ -107,7 +107,7 @@ const BoxCategory = ({
}
const handleMouseEnter = () => {
- import('@/shared/components/Calendar').catch((error) => {
+ import('@/shared/components/Calendar/Calendar').catch((error) => {
console.error('캘린더를 받아오는데 오류가 발생했습니다.', error);
});
};
diff --git a/src/pages/HomePage/BoxTodayTodo/StatusAddBoxTodayTodo/StatusAddBoxTodayTodo.tsx b/src/pages/HomePage/BoxTodayTodo/StatusAddBoxTodayTodo/StatusAddBoxTodayTodo.tsx
index 36bb64ae..a7755be0 100644
--- a/src/pages/HomePage/BoxTodayTodo/StatusAddBoxTodayTodo/StatusAddBoxTodayTodo.tsx
+++ b/src/pages/HomePage/BoxTodayTodo/StatusAddBoxTodayTodo/StatusAddBoxTodayTodo.tsx
@@ -1,5 +1,5 @@
import BoxTodo from '@/shared/components/BoxTodo/BoxTodo';
-import HomeLargeBtn from '@/shared/components/Button/ButtonHomeLarge/ButtonHomeLarge';
+import HomeLargeBtn from '@/shared/components/ButtonHomeLarge/ButtonHomeLarge';
import { HomeLargeBtnVariant } from '@/shared/types/global';
import { Task } from '@/shared/types/home';
diff --git a/src/pages/HomePage/BoxTodayTodo/StatusDefaultBoxTodayTodo/StatusDefaultBoxTodayTodo.tsx b/src/pages/HomePage/BoxTodayTodo/StatusDefaultBoxTodayTodo/StatusDefaultBoxTodayTodo.tsx
index 96094182..b64f5a72 100644
--- a/src/pages/HomePage/BoxTodayTodo/StatusDefaultBoxTodayTodo/StatusDefaultBoxTodayTodo.tsx
+++ b/src/pages/HomePage/BoxTodayTodo/StatusDefaultBoxTodayTodo/StatusDefaultBoxTodayTodo.tsx
@@ -1,4 +1,4 @@
-import HomeLargeBtn from '@/shared/components/Button/ButtonHomeLarge/ButtonHomeLarge';
+import HomeLargeBtn from '@/shared/components/ButtonHomeLarge/ButtonHomeLarge';
import { HomeLargeBtnVariant } from '@/shared/types/global';
diff --git a/src/pages/HomePage/DatePicker/DatePicker.tsx b/src/pages/HomePage/DatePicker/DatePicker.tsx
index 3c2fa18a..a5d9f8c7 100644
--- a/src/pages/HomePage/DatePicker/DatePicker.tsx
+++ b/src/pages/HomePage/DatePicker/DatePicker.tsx
@@ -1,8 +1,8 @@
import { Dayjs } from 'dayjs';
-import ArrowSVGBtn from '@/shared/components/Button/ButtonArrowSVG/ButtonArrowSVG';
-import ButtonDropdownOptions from '@/shared/components/ButtonDropdownOptions';
-import Dropdown from '@/shared/components/Dropdown';
+import ArrowSVGBtn from '@/shared/components/ButtonArrowSVG/ButtonArrowSVG';
+import ButtonDropdownOptions from '@/shared/components/ButtonDropdownOptions/ButtonDropdownOptions';
+import Dropdown from '@/shared/components/Dropdown/Dropdown';
import { getHomeDropdownData } from '@/shared/utils/date';
@@ -11,8 +11,7 @@ import { Direction } from '@/shared/types/global';
import ButtonArrowIcon from '@/shared/assets/svgs/btn_arrow.svg?react';
import ButtonTodayIcon from '@/shared/assets/svgs/btn_today.svg?react';
-import DateBtn from '@/pages/HomePage/DatePicker/ButtonDate/ButtonDate';
-
+import DateBtn from './ButtonDate/ButtonDate';
import { useDatePicker } from './hooks/useDatePicker';
interface DatePickerProps {
diff --git a/src/pages/HomePage/HomePage.tsx b/src/pages/HomePage/HomePage.tsx
index b2fd5bc9..6a59ab36 100644
--- a/src/pages/HomePage/HomePage.tsx
+++ b/src/pages/HomePage/HomePage.tsx
@@ -7,7 +7,7 @@ import { useNavigate } from 'react-router-dom';
import { useQueryClient } from '@tanstack/react-query';
-import ModalWrapper, { ModalWrapperRef } from '@/shared/components/ModalWrapper';
+import ModalWrapper, { ModalWrapperRef } from '@/shared/components/ModalWrapper/ModalWrapper';
import useClickOutside from '@/shared/hooks/useClickOutside';
diff --git a/src/shared/components/ButtonCategoryCommon.tsx b/src/pages/HomePage/ModalContentsCategory/ButtonCategoryCommon/ButtonCategoryCommon.tsx
similarity index 100%
rename from src/shared/components/ButtonCategoryCommon.tsx
rename to src/pages/HomePage/ModalContentsCategory/ButtonCategoryCommon/ButtonCategoryCommon.tsx
diff --git a/src/shared/components/CalendarSelectedDate.tsx b/src/pages/HomePage/ModalContentsCategory/CalendarSelectedDate/CalendarSelectedDate.tsx
similarity index 100%
rename from src/shared/components/CalendarSelectedDate.tsx
rename to src/pages/HomePage/ModalContentsCategory/CalendarSelectedDate/CalendarSelectedDate.tsx
diff --git a/src/shared/components/CategoryCommonMoribSet.tsx b/src/pages/HomePage/ModalContentsCategory/CategoryCommonMoribSet/CategoryCommonMoribSet.tsx
similarity index 100%
rename from src/shared/components/CategoryCommonMoribSet.tsx
rename to src/pages/HomePage/ModalContentsCategory/CategoryCommonMoribSet/CategoryCommonMoribSet.tsx
diff --git a/src/shared/components/CategoryMsetUrlInfo.tsx b/src/pages/HomePage/ModalContentsCategory/CategoryMsetUrlInfo/CategoryMsetUrlInfo.tsx
similarity index 95%
rename from src/shared/components/CategoryMsetUrlInfo.tsx
rename to src/pages/HomePage/ModalContentsCategory/CategoryMsetUrlInfo/CategoryMsetUrlInfo.tsx
index efe5861b..c2fddd71 100644
--- a/src/shared/components/CategoryMsetUrlInfo.tsx
+++ b/src/pages/HomePage/ModalContentsCategory/CategoryMsetUrlInfo/CategoryMsetUrlInfo.tsx
@@ -32,7 +32,7 @@ const CategoryMsetUrlInfo = ({ urlInfo, variant, children }: CategoryMoribPageIn
-
+
{urlInfo.domain}
diff --git a/src/shared/components/InputCategoryUrl.tsx b/src/pages/HomePage/ModalContentsCategory/InputCategoryUrl/InputCategoryUrl.tsx
similarity index 97%
rename from src/shared/components/InputCategoryUrl.tsx
rename to src/pages/HomePage/ModalContentsCategory/InputCategoryUrl/InputCategoryUrl.tsx
index 92d72e20..122e57b9 100644
--- a/src/shared/components/InputCategoryUrl.tsx
+++ b/src/pages/HomePage/ModalContentsCategory/InputCategoryUrl/InputCategoryUrl.tsx
@@ -78,7 +78,7 @@ const InputCategoryUrl = ({
/>
-
{errorMessage}
+
{errorMessage}
);
diff --git a/src/shared/components/ButtonCategoryDropdown.tsx b/src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/DropdownCategory/ButtonCategoryDropdown/ButtonCategoryDropdown.tsx
similarity index 81%
rename from src/shared/components/ButtonCategoryDropdown.tsx
rename to src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/DropdownCategory/ButtonCategoryDropdown/ButtonCategoryDropdown.tsx
index 1a18360f..1ee396be 100644
--- a/src/shared/components/ButtonCategoryDropdown.tsx
+++ b/src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/DropdownCategory/ButtonCategoryDropdown/ButtonCategoryDropdown.tsx
@@ -4,13 +4,19 @@ import DisabledDropIcon from '@/shared/assets/svgs/disabled_dropdown.svg?react';
import DropIcon from '@/shared/assets/svgs/dropIcon.svg?react';
import UpIcon from '@/shared/assets/svgs/upIcon.svg?react';
-interface CategoryBtnProps extends ButtonHTMLAttributes
{
+interface ButtonCategoryDropdownProps extends ButtonHTMLAttributes {
isClicked: boolean;
handleClicked: (prev: boolean) => void;
selectedOption: string;
}
-const CategoryDropdownBtn = ({ isClicked, handleClicked, selectedOption, disabled, ...props }: CategoryBtnProps) => {
+const ButtonCategoryDropdown = ({
+ isClicked,
+ handleClicked,
+ selectedOption,
+ disabled,
+ ...props
+}: ButtonCategoryDropdownProps) => {
const clickedDropdownStyle = isClicked ? 'bg-gray-bg-05 text-white' : 'bg-gray-bg-03 text-white';
const commonBtnStyle = `subhead-med-18 flex h-[4.6rem] w-[27.2rem] items-center justify-between rounded-[5px] px-[1.6rem] py-[1.1rem] mb-[3.2rem]`;
@@ -40,4 +46,4 @@ const CategoryDropdownBtn = ({ isClicked, handleClicked, selectedOption, disable
);
};
-export default CategoryDropdownBtn;
+export default ButtonCategoryDropdown;
diff --git a/src/shared/components/DropdownCategory.tsx b/src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/DropdownCategory/DropdownCategory.tsx
similarity index 89%
rename from src/shared/components/DropdownCategory.tsx
rename to src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/DropdownCategory/DropdownCategory.tsx
index c5f60a7b..584173bd 100644
--- a/src/shared/components/DropdownCategory.tsx
+++ b/src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/DropdownCategory/DropdownCategory.tsx
@@ -2,11 +2,12 @@ import { ButtonHTMLAttributes, useRef } from 'react';
import { useQueryClient } from '@tanstack/react-query';
-import ButtonCategoryDropdown from '@/shared/components/ButtonCategoryDropdown';
-import ButtonDropdownOptions from '@/shared/components/ButtonDropdownOptions';
+import ButtonDropdownOptions from '@/shared/components/ButtonDropdownOptions/ButtonDropdownOptions';
import useClickOutside from '@/shared/hooks/useClickOutside';
+import ButtonCategoryDropdown from './ButtonCategoryDropdown/ButtonCategoryDropdown';
+
interface DropdownBtnProps extends ButtonHTMLAttributes {
optionData: Category[];
handleOptionId: (id: number) => void;
@@ -64,7 +65,7 @@ const DropdownCategory = ({
return (
{
diff --git a/src/shared/components/AddCategoryListModal.tsx b/src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/ModalAddCategoryList.tsx
similarity index 90%
rename from src/shared/components/AddCategoryListModal.tsx
rename to src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/ModalAddCategoryList.tsx
index c5e471dd..74b80f39 100644
--- a/src/shared/components/AddCategoryListModal.tsx
+++ b/src/pages/HomePage/ModalContentsCategory/ModalAddCategoryList/ModalAddCategoryList.tsx
@@ -1,11 +1,5 @@
import { useState } from 'react';
-import ButtonCategoryCommon from '@/shared/components/ButtonCategoryCommon';
-import CategoryMsetUrlInfo from '@/shared/components/CategoryMsetUrlInfo';
-import CategoryTabSelect from '@/shared/components/CategoryTabSelect';
-import DropdownCategory from '@/shared/components/DropdownCategory';
-import TitleMoribSet from '@/shared/components/TitleMoribSet';
-
import { getTabName } from '@/shared/apis/modal/axios';
import { useCategoryLists, useGetMsets } from '@/shared/apis/modal/queries';
@@ -14,8 +8,13 @@ import { CATEGORY_MODALTABS } from '@/shared/constants/tabSelections';
import AddBtn from '@/shared/assets/svgs/add_btn.svg?react';
import MinusBtn from '@/shared/assets/svgs/minus_btn.svg?react';
-import CategoryCommonMoribSet from './CategoryCommonMoribSet';
-import InputCategoryUrl from './InputCategoryUrl';
+import ButtonCategoryCommon from '../ButtonCategoryCommon/ButtonCategoryCommon';
+import CategoryCommonMoribSet from '../CategoryCommonMoribSet/CategoryCommonMoribSet';
+import CategoryMsetUrlInfo from '../CategoryMsetUrlInfo/CategoryMsetUrlInfo';
+import InputCategoryUrl from '../InputCategoryUrl/InputCategoryUrl';
+import DropdownCategory from '../ModalAddCategoryList/DropdownCategory/DropdownCategory';
+import TitleMoribSet from '../ModalAddCategoryList/TitleMoribSet/TitleMoribSet';
+import CategoryTabSelect from '../TabCategorySelect/TabCategorySelect';
interface UrlInfo {
url: string;
@@ -100,7 +99,7 @@ const AddCategoryListModal = ({
-
카테고리 추가
+ 카테고리 추가