From ae3e8a8f35a13f82d54be5de709d13b0389a14b1 Mon Sep 17 00:00:00 2001 From: kyuran kim <57716832+gxxrxn@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:15:43 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"[#591]=203D=20=EC=B1=85=20=EC=BB=B4?= =?UTF-8?q?=ED=8F=AC=EB=84=8C=ED=8A=B8,=20=EC=B1=85=EC=9E=A5=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EA=B0=9C=EC=84=A0=20(#594)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 2beb0f2eed25dd7076288d75765be890e0eca2fb. --- src/app/bookshelf/[bookshelfId]/page.tsx | 165 ++++++++---------- .../bookshelf/useBookShelfInfoQuery.ts | 23 +-- src/styles/global.css | 5 - src/v1/bookShelf/BookShelf.tsx | 58 +++--- src/v1/bookShelf/BookShelfCard.tsx | 2 +- src/v1/bookShelf/BookShelfRow.tsx | 2 +- 6 files changed, 99 insertions(+), 156 deletions(-) diff --git a/src/app/bookshelf/[bookshelfId]/page.tsx b/src/app/bookshelf/[bookshelfId]/page.tsx index fbd85b00..0d4c693f 100644 --- a/src/app/bookshelf/[bookshelfId]/page.tsx +++ b/src/app/bookshelf/[bookshelfId]/page.tsx @@ -1,26 +1,23 @@ 'use client'; import { useEffect } from 'react'; -import Link from 'next/link'; import { useInView } from 'react-intersection-observer'; - -import type { APIBookshelf } from '@/types/bookshelf'; - +import Link from 'next/link'; import useBookShelfBooksQuery from '@/queries/bookshelf/useBookShelfBookListQuery'; import useBookShelfInfoQuery from '@/queries/bookshelf/useBookShelfInfoQuery'; import useMutateBookshelfLikeQuery from '@/queries/bookshelf/useMutateBookshelfLikeQuery'; -import { useMyProfileId } from '@/queries/user/useMyProfileQuery'; +import useToast from '@/v1/base/Toast/useToast'; import { checkAuthentication } from '@/utils/helpers'; import { IconKakao } from '@public/icons'; -import { KAKAO_LOGIN_URL } from '@/constants/url'; - -import useToast from '@/v1/base/Toast/useToast'; import TopNavigation from '@/v1/base/TopNavigation'; import BookShelfRow from '@/v1/bookShelf/BookShelfRow'; import Button from '@/v1/base/Button'; import LikeButton from '@/v1/base/LikeButton'; import BackButton from '@/v1/base/BackButton'; import ShareButton from '@/v1/base/ShareButton'; +import type { APIBookshelf, APIBookshelfInfo } from '@/types/bookshelf'; + +const KAKAO_OAUTH_LOGIN_URL = `${process.env.NEXT_PUBLIC_API_URL}/oauth2/authorize/kakao?redirect_uri=${process.env.NEXT_PUBLIC_CLIENT_REDIRECT_URI}`; export default function UserBookShelfPage({ params: { bookshelfId }, @@ -29,34 +26,13 @@ export default function UserBookShelfPage({ bookshelfId: APIBookshelf['bookshelfId']; }; }) { - return ( -
+ 지금 로그인하면
+
+ 책장에 담긴 모든 책을 볼 수 있어요!
+
+ {userNickname}님의 책장에서
+ 다양한
+
+ 인사이트를 얻을 수 있어요.
+
- 지금 로그인하면
-
- 책장에 담긴 모든 책을 볼 수 있어요!
-
- {userNickname}님의 책장에서
- 다양한
-
- 인사이트를 얻을 수 있어요.
-