diff --git a/src/api/hooks/Mail/useGetMail.tsx b/src/api/hooks/Mail/useGetMail.tsx new file mode 100644 index 0000000..889c733 --- /dev/null +++ b/src/api/hooks/Mail/useGetMail.tsx @@ -0,0 +1,3 @@ +import { BASE_URL } from '@/api'; + +export const getMailPath = () => `${BASE_URL}/`; diff --git a/src/api/hooks/usePostMail.tsx b/src/api/hooks/Mail/usePostMail.tsx similarity index 96% rename from src/api/hooks/usePostMail.tsx rename to src/api/hooks/Mail/usePostMail.tsx index f20221b..df7c81a 100644 --- a/src/api/hooks/usePostMail.tsx +++ b/src/api/hooks/Mail/usePostMail.tsx @@ -1,6 +1,6 @@ import { MailPostData } from '@/types'; import axios from 'axios'; -import { BASE_URL } from '..'; +import { BASE_URL } from '../..'; import { useMutation } from '@tanstack/react-query'; export const postMailPath = () => `${BASE_URL}/save-email`; diff --git a/src/components/Mail/MailModal.tsx b/src/components/Mail/MailModal.tsx index b916141..cc1dcd8 100644 --- a/src/components/Mail/MailModal.tsx +++ b/src/components/Mail/MailModal.tsx @@ -31,7 +31,7 @@ import { warningTextsUniv, } from './MailModalData'; import { useAuth } from '@/Provider/Auth'; -import { usePostMail } from '@/api/hooks/usePostMail'; +import { usePostMail } from '@/api/hooks/Mail/usePostMail'; interface MailModalProps { isOpen: boolean;