From 2711b932d5a3ccbac359012cf0b70896c3f987f1 Mon Sep 17 00:00:00 2001 From: Goldenprevue Date: Sun, 5 Mar 2023 14:07:49 +0900 Subject: [PATCH] =?UTF-8?q?#58=20=EB=A7=8C=EB=93=A4=EC=97=88=EB=8D=98=20?= =?UTF-8?q?=ED=9B=85=EC=9D=80=20=EB=A6=AC=EB=AA=A8=ED=8A=B8=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EB=AC=B8=EC=A0=9C=EB=A1=9C=20=EC=BB=A4=EB=B0=8B?= =?UTF-8?q?=EB=8F=8C=EB=A6=AC=EA=B3=A0=20=EB=8B=A4=EC=8B=9C=20=EC=A0=95?= =?UTF-8?q?=EB=A6=AC=ED=95=98=EA=B3=A0=20=EC=BD=94=EB=93=9C=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=ED=95=A9=EB=8B=88=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/filter_box/category/CreateAt.tsx | 2 +- src/components/filter_box/category/Medium.tsx | 6 +++--- src/components/filter_box/category/Source.tsx | 6 +++--- .../filter_box/category/calenda_components/Calendar.tsx | 2 +- .../category/calenda_components/CalendarButtonBox.tsx | 2 +- .../filter_box/category/key_word_search/KeyWordInput.tsx | 4 ++-- src/components/filter_box/{shared => elem}/FButton.tsx | 0 src/components/filter_box/{shared => elem}/FInput.tsx | 0 src/components/filter_box/{shared => elem}/IButton.tsx | 0 .../filter_box/{shared => elem}/styles.module.css | 0 src/pages/CreatePage.tsx | 2 +- src/util/hooks/useAsync.ts | 9 +++++++++ .../{hooks/selectorDispatch.ts => reduxType/type.ts} | 0 13 files changed, 21 insertions(+), 12 deletions(-) rename src/components/filter_box/{shared => elem}/FButton.tsx (100%) rename src/components/filter_box/{shared => elem}/FInput.tsx (100%) rename src/components/filter_box/{shared => elem}/IButton.tsx (100%) rename src/components/filter_box/{shared => elem}/styles.module.css (100%) create mode 100644 src/util/hooks/useAsync.ts rename src/util/{hooks/selectorDispatch.ts => reduxType/type.ts} (100%) diff --git a/src/components/filter_box/category/CreateAt.tsx b/src/components/filter_box/category/CreateAt.tsx index 28109e3..d007abd 100644 --- a/src/components/filter_box/category/CreateAt.tsx +++ b/src/components/filter_box/category/CreateAt.tsx @@ -1,6 +1,6 @@ import { useRef } from 'react'; import { today } from 'redux/slice/filterSlice'; -import { useAppDispatch } from 'util/hooks/selectorDispatch'; +import { useAppDispatch } from 'util/reduxType/type'; import { Calendar } from './calenda_components/Calendar'; import { CalendarButtonBox } from './calenda_components/CalendarButtonBox'; import styles from './categoryStyles.module.css'; diff --git a/src/components/filter_box/category/Medium.tsx b/src/components/filter_box/category/Medium.tsx index c180c89..ba1b546 100644 --- a/src/components/filter_box/category/Medium.tsx +++ b/src/components/filter_box/category/Medium.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { FButton } from '../shared/FButton'; -import { IButton } from '../shared/IButton'; -import { FInput } from '../shared/FInput'; +import { FButton } from '../elem/FButton'; +import { IButton } from '../elem/IButton'; +import { FInput } from '../elem/FInput'; import styles from './categoryStyles.module.css'; export const Medium = () => { const mockKeyWord = [ diff --git a/src/components/filter_box/category/Source.tsx b/src/components/filter_box/category/Source.tsx index a527a04..c9d8e99 100644 --- a/src/components/filter_box/category/Source.tsx +++ b/src/components/filter_box/category/Source.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { FButton } from 'components/filter_box/shared/FButton'; -import { FInput } from 'components/filter_box/shared/FInput'; -import { IButton } from 'components/filter_box/shared/IButton'; +import { FButton } from 'components/filter_box/elem/FButton'; +import { FInput } from 'components/filter_box/elem/FInput'; +import { IButton } from 'components/filter_box/elem/IButton'; import styles from './categoryStyles.module.css'; export const Source = () => { const mockKeyWord = [ diff --git a/src/components/filter_box/category/calenda_components/Calendar.tsx b/src/components/filter_box/category/calenda_components/Calendar.tsx index 0db1f6d..4490d6b 100644 --- a/src/components/filter_box/category/calenda_components/Calendar.tsx +++ b/src/components/filter_box/category/calenda_components/Calendar.tsx @@ -1,5 +1,5 @@ import { FormEvent, useRef } from 'react'; -import { useAppSelector, useAppDispatch } from 'util/hooks/selectorDispatch'; +import { useAppSelector, useAppDispatch } from 'util/reduxType/type'; import { today } from 'redux/slice/filterSlice'; export const Calendar = () => { diff --git a/src/components/filter_box/category/calenda_components/CalendarButtonBox.tsx b/src/components/filter_box/category/calenda_components/CalendarButtonBox.tsx index 09a5281..94ee574 100644 --- a/src/components/filter_box/category/calenda_components/CalendarButtonBox.tsx +++ b/src/components/filter_box/category/calenda_components/CalendarButtonBox.tsx @@ -1,5 +1,5 @@ import React, { useRef } from 'react'; -import { useAppDispatch } from 'util/hooks/selectorDispatch'; +import { useAppDispatch } from 'util/reduxType/type'; import { today } from 'redux/slice/filterSlice'; import styles from './calendarStyles.module.css'; export const CalendarButtonBox = () => { diff --git a/src/components/filter_box/category/key_word_search/KeyWordInput.tsx b/src/components/filter_box/category/key_word_search/KeyWordInput.tsx index 4536662..4771289 100644 --- a/src/components/filter_box/category/key_word_search/KeyWordInput.tsx +++ b/src/components/filter_box/category/key_word_search/KeyWordInput.tsx @@ -1,5 +1,5 @@ -import { FButton } from 'components/filter_box/shared/FButton'; -import { FInput } from 'components/filter_box/shared/FInput'; +import { FButton } from 'components/filter_box/elem/FButton'; +import { FInput } from 'components/filter_box/elem/FInput'; import React from 'react'; export const KeyWordInput = () => { diff --git a/src/components/filter_box/shared/FButton.tsx b/src/components/filter_box/elem/FButton.tsx similarity index 100% rename from src/components/filter_box/shared/FButton.tsx rename to src/components/filter_box/elem/FButton.tsx diff --git a/src/components/filter_box/shared/FInput.tsx b/src/components/filter_box/elem/FInput.tsx similarity index 100% rename from src/components/filter_box/shared/FInput.tsx rename to src/components/filter_box/elem/FInput.tsx diff --git a/src/components/filter_box/shared/IButton.tsx b/src/components/filter_box/elem/IButton.tsx similarity index 100% rename from src/components/filter_box/shared/IButton.tsx rename to src/components/filter_box/elem/IButton.tsx diff --git a/src/components/filter_box/shared/styles.module.css b/src/components/filter_box/elem/styles.module.css similarity index 100% rename from src/components/filter_box/shared/styles.module.css rename to src/components/filter_box/elem/styles.module.css diff --git a/src/pages/CreatePage.tsx b/src/pages/CreatePage.tsx index dca7d45..c60938f 100644 --- a/src/pages/CreatePage.tsx +++ b/src/pages/CreatePage.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { CreateUtm } from 'components/create_component/CreateUtm'; +import { CreateUtm } from 'components/create_components/CreateUtm'; export default function CreatePage() { return ; } diff --git a/src/util/hooks/useAsync.ts b/src/util/hooks/useAsync.ts new file mode 100644 index 0000000..de20fa1 --- /dev/null +++ b/src/util/hooks/useAsync.ts @@ -0,0 +1,9 @@ +import { useQuery } from '@tanstack/react-query'; +// import { get_utm } from 'async/api/getApi'; + +// export const useGetUtm = () => { +// return useQuery(['get_utm'], async () => { +// const { data } = await +// return data; +// }); +// }; diff --git a/src/util/hooks/selectorDispatch.ts b/src/util/reduxType/type.ts similarity index 100% rename from src/util/hooks/selectorDispatch.ts rename to src/util/reduxType/type.ts