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