Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ refactor: 페이지 별 컴포넌트, hook 이동 #58

Merged
merged 11 commits into from
Jul 17, 2023
Merged
2 changes: 1 addition & 1 deletion src/application/hooks/api/search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type { QueryClient, QueryFunctionContext } from "@tanstack/react-query";
import { useInfiniteQuery } from "@tanstack/react-query";
import { useEffect, useRef } from "react";

import type { RecentSearch } from "@/application/hooks";
import { useLocalStorage } from "@/common/hooks";
import type { RecentSearch } from "@/features/search/hooks";
import { api } from "@/infra/api";

import { useCoreInfiniteQuery } from "../core/useCoreInfiniteQuery";
Expand Down
1 change: 0 additions & 1 deletion src/application/hooks/domain/auth/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/application/hooks/domain/channel/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/application/hooks/domain/collection/index.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/application/hooks/domain/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/application/hooks/domain/meme/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/application/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from "./api";
export * from "./domain";
2 changes: 1 addition & 1 deletion src/common/components/Masonry/Masonry.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ComponentMeta, ComponentStory } from "@storybook/react";
import React from "react";

import { MemeItem } from "@/components/meme/MemeItem";
import { MemeItem } from "@/features/common";

import { Masonry } from "./Masonry";

Expand Down
2 changes: 1 addition & 1 deletion src/common/components/Modal/SignOutModal.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useRouter } from "next/router";

import { useAuth } from "@/application/hooks";
import { useToast } from "@/common/hooks";
import { PATH } from "@/common/utils";
import { useAuth } from "@/features/common";

import { RandomImage } from "../RandomImge";
import { Modal } from "./Modal";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { CSSTransition } from "react-transition-group";
import { css } from "twin.macro";

import { useScrollDirection } from "@/common/hooks";
import { SearchInput } from "@/components/search";
import { TagCategory } from "@/components/tags";
import { TagCategory } from "@/features/common";
import { SearchInput } from "@/features/search/components";

import { BackButton } from "../BackButton";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Link from "next/link";

import type { useAuth } from "@/application/hooks";
import { Icon } from "@/common/components/Icon";
import { SignOutModal } from "@/common/components/Modal";
import { Photo } from "@/common/components/Photo";
import { useModal } from "@/common/hooks";
import { channelUrl } from "@/common/utils";
import type { useAuth } from "@/features/common";

type LoginSideBarContentProps = ReturnType<typeof useAuth>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { useAuth } from "@/application/hooks";
import { Icon } from "@/common/components/Icon";
import { Photo } from "@/common/components/Photo";
import { channelUrl } from "@/common/utils";
import type { useAuth } from "@/features/common";

const defaultAvatarUrl = "/img/default-avatar.png";
const defaultName = "로그인하기";
Expand Down
3 changes: 1 addition & 2 deletions src/common/components/Navigation/SideBar/SideBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useAuth } from "@/application/hooks";
import { instagramUrl, twitterUrl } from "@/common/utils";
import { useTagCategoryContext } from "@/components/tags";
import { useAuth, useTagCategoryContext } from "@/features/common";

import { Drawer } from "../../Drawer";
import { Icon } from "../../Icon";
Expand Down
1 change: 0 additions & 1 deletion src/components/collect/Collection/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/collect/SearchedCollection/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/explore/EmptyMemesView/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/explore/MemesByTag/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/explore/Thumbnail/index.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/explore/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/home/MemeListContainer/DropDown/index.ts

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/home/MemeListContainer/MemeList/index.ts

This file was deleted.

43 changes: 0 additions & 43 deletions src/components/home/Skeleton/SkeletonMeme.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/home/Skeleton/SkeletonTagList.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/home/Skeleton/index.ts

This file was deleted.

38 changes: 0 additions & 38 deletions src/components/home/UserSharedMeme/SharedMemeItem.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions src/components/home/UserSharedMeme/SharedMemeTagList.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions src/components/home/UserSharedMeme/UserSharedMemeList.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/home/UserSharedMeme/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/meme/ActionSheet/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/meme/InfiniteMemeList/index.ts

This file was deleted.

31 changes: 0 additions & 31 deletions src/components/meme/MemeInfo/Button/CollectionSaveButton.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/meme/MemeInfo/Button/index.ts

This file was deleted.

35 changes: 0 additions & 35 deletions src/components/meme/MemeInfo/MemeCTAList.tsx

This file was deleted.

Loading