Skip to content

Commit

Permalink
chore: useModal index 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
bae-sh committed Jan 15, 2024
1 parent bc33c86 commit 9e9cffd
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion client/src/app/(home)/components/WritePostButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useSelector } from 'react-redux';
import { Avatar } from '@/components';

// hooks
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';

// service
import { BASE_URL } from '@/service/base/api';
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/chat/components/user-tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Icon } from '@iconify/react';
import { Avatar } from '@/components';

// hooks
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';

// services
import { createChatRoom } from '@/service/chat-post';
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useSearchParams, useRouter } from 'next/navigation';
import { ChatRoom, ChatUserList } from './components';

// hooks
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';

// services
import axios from 'axios';
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Divider } from '@/components';
import { userManager } from '@/service/user';

// hooks
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';

// constant
import {
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/mygpt/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Layout } from '@/components';
import { ModalType, errorMessage } from '@/constants/constant';

//hooks
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';

//type
import { IContent } from '@/types/mygpt';
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/profile/components/EditProfile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import * as Yup from 'yup';
import { Avatar, LoadingIcon, Form as CustomForm } from '@/components';

// hooks
import { useModal } from '@/hooks';
import useEmail from '@/hooks/form/useEmail';
import useInputImage from '@/hooks/form/useInputImage';
import useModal from '@/hooks/modal/useModal';

// service
import { userManager } from '@/service/user';
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/profile/components/UserInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import React, { useState, Suspense } from 'react';
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';
import { useSelector } from 'react-redux';
import { useQuery } from '@tanstack/react-query';
import { ErrorBoundary } from 'react-error-boundary';
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import { EmailState, ISignupData } from '@/types';

// service
import { userManager } from '@/service/user';
import useModal from '@/hooks/modal/useModal';

// hooks
import { useModal } from '@/hooks';

const ValidationSchema = Yup.object().shape({
userId: Yup.string()
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/write/components/icons/add-photo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { postManager } from '@/service/post';

//third party
import { Editor } from '@tiptap/react';
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';
import { Icon } from '@iconify/react';

function AddPhoto({ editor }: { editor: Editor }) {
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/write/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ModalType, errorMessage, warningMessage } from '@/constants/constant';
import Tiptap from './components/Tiptap';

//hooks
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';
import useWriting from './hooks/useWriting';
import useTipTap from './hooks/useTiptap';

Expand Down
3 changes: 1 addition & 2 deletions client/src/components/AuthComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { useDispatch } from 'react-redux';
import { logIn, logOut } from '@/lib/redux/features/auth/authSlice';

// hooks
import { useModal } from '@/hooks';

import useModal from '@/hooks/modal/useModal';
// services
import axios, { AxiosError } from 'axios';
import { userManager } from '@/service/user';
Expand Down
3 changes: 1 addition & 2 deletions client/src/components/MenuView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import React from 'react';
import { useSelector } from 'react-redux';

// hooks
import { useModal } from '@/hooks';

import useModal from '@/hooks/modal/useModal';
// constant
import { linkList, ModalType, errorMessage } from '@/constants/constant';

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useSelector } from 'react-redux';
import { modalSelector } from '@/lib/redux/features/modal/modalSlice';
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';
import ModalIcon from './modal-icon';
import ModalButton from './modal-button';
import { MODAL_TITLE, ModalType } from '@/constants/constant';
Expand Down
3 changes: 1 addition & 2 deletions client/src/components/Navigator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import Image from 'next/image';
import { useSelector } from 'react-redux';

// hooks
import { useModal } from '@/hooks';

import useModal from '@/hooks/modal/useModal';
// constants
import { ModalType, errorMessage } from '@/constants/constant';

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Post/CommentUpload/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { commentManager } from '@/service/comment';

//assets
import { ModalType, errorMessage } from '@/constants/constant';
import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';

//form
import { Field, Form, Formik } from 'formik';
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Post/DeleteButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { useRouter } from 'next/navigation';

import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';
import {
ModalType,
errorMessage,
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Post/ModifyCommentButton/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import { useModal } from '@/hooks';
import useModal from '@/hooks/modal/useModal';
import { ModalType, errorMessage, successMessage } from '@/constants/constant';
import { commentManager } from '@/service/comment';

Expand Down
2 changes: 1 addition & 1 deletion client/src/hooks/Form/useEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { useState, useRef } from 'react';

// 전역
import { useModal } from '..';
import useModal from '@/hooks/modal/useModal';

// types
import { EmailState, EmailType } from '@/types';
Expand Down
1 change: 0 additions & 1 deletion client/src/hooks/index.ts

This file was deleted.

0 comments on commit 9e9cffd

Please sign in to comment.