-
{bookData.title}
-
{bookData.description}
+
{bookData?.title}
+
{bookData?.description}
{/* 다른 필요한 책 정보 렌더링 */}
{/* 찜하기 버튼 */}
diff --git a/src/pages/BookShelfPage.tsx b/src/pages/BookShelfPage.tsx
index 8db2eda..91fb391 100644
--- a/src/pages/BookShelfPage.tsx
+++ b/src/pages/BookShelfPage.tsx
@@ -5,7 +5,7 @@ import Header from '../components/Header/ShelfHeader.tsx'
import DetailModal from '../components/shelf/DetailModal.tsx'
import ReviewModal from '../components/shelf/ReviewModal.tsx'
import axios from 'axios'
-import BookInfo from '../components/Modal/ModalAtom/BookInfo'
+// import BookInfo from '../components/Modal/ModalAtom/BookInfo'
const BookShelfPage: React.FC = () => {
// 3개의 책장 구성
diff --git a/src/pages/LoginPage.tsx b/src/pages/LoginPage.tsx
index 5b69f91..3ccc717 100644
--- a/src/pages/LoginPage.tsx
+++ b/src/pages/LoginPage.tsx
@@ -10,11 +10,11 @@ import Bar3 from '../../public/img/Bar3.png'
import { baseInstance } from '../api/config'
import Swal from 'sweetalert2'
import 'sweetalert2/src/sweetalert2.scss'
-import { SignIn, SignedOut, SignInButton, UserButton, useUser } from '@clerk/clerk-react'
+// import { SignIn, SignedOut, SignInButton, UserButton, useUser } from '@clerk/clerk-react'
export default function LoginPage() {
const navigate = useNavigate()
- const { isLoaded, isSignedIn, user } = useUser()
+ // const { isLoaded, isSignedIn, user } = useUser()
const handleLogin = async () => {
if (id && pw) {
try {
@@ -129,7 +129,7 @@ export default function LoginPage() {
)}
- {activeTab === 'social' &&
}
+ {/* {activeTab === 'social' &&
} */}
계정이 없으신가요?
diff --git a/src/pages/MyPage.tsx b/src/pages/MyPage.tsx
index ca9d95b..59a48bb 100644
--- a/src/pages/MyPage.tsx
+++ b/src/pages/MyPage.tsx
@@ -8,7 +8,7 @@ import ReviewInput from '../components/Modal/ModalAtom/ReviewInput'
import StarRating from '../components/Modal/ModalAtom/StarRating'
const MyPageContent = () => {
- const { activeTab, isModalOpen, selectedBook, setIsModalOpen, setGrading, setText,setIsActive } =
+ const { activeTab, isModalOpen, selectedBook, setIsModalOpen, setGrading, setText, setIsActive } =
useMyContext()
const handleCloseModal = () => {
@@ -26,7 +26,7 @@ const MyPageContent = () => {
{activeTab === 'reading' && (
<>
-
+
>
)}
diff --git a/src/pages/SearchPage.tsx b/src/pages/SearchPage.tsx
index 599404a..21114d1 100644
--- a/src/pages/SearchPage.tsx
+++ b/src/pages/SearchPage.tsx
@@ -1,7 +1,6 @@
-import React, { useEffect, useState } from 'react'
+import { useEffect, useState } from 'react'
import axios from 'axios'
import Ask from '../components/search/Ask'
-import ViewedBooks from '../components/search/ViewedBooks'
import PopularBooks from '../components/search/PopularBook'
import RecentBooks from '../components/search/RecentBooks'
import Swal from 'sweetalert2'
@@ -13,7 +12,7 @@ import SearchHistorySwipe from '../components/search/swiper/SearchHistory/Search
const SearchPage = () => {
const [activeSwipe, setActiveSwipe] = useState
(null)
- const [books, setBooks] = useState([])
+ const [_, setBooks] = useState([])
const [isAsk, setIsAsk] = useState(false)
const [userName, setUserName] = useState('')
const [isAdmin, setIsAdmin] = useState(false)
diff --git a/src/pages/SignUpPage.tsx b/src/pages/SignUpPage.tsx
index 7211ab2..73a695d 100644
--- a/src/pages/SignUpPage.tsx
+++ b/src/pages/SignUpPage.tsx
@@ -1,5 +1,4 @@
import React from 'react'
-import styled from 'styled-components'
import LoginInput from '../components/Input/LoginInput'
import { useCallback, useState } from 'react'
import SignUpBtn from '../components/Btn/SignUpBtn'
@@ -11,7 +10,7 @@ import Bar1 from '../../public/img/Bar1.png'
import Bar2 from '../../public/img/Bar2.png'
import Bar3 from '../../public/img/Bar3.png'
import { baseInstance } from '../api/config'
-import { SignUp, SignedIn, SignedOut, SignInButton, UserButton } from '@clerk/clerk-react'
+// import { SignUp, SignedIn, SignedOut, SignInButton, UserButton } from '@clerk/clerk-react'
export default function SignUpPage() {
const navigate = useNavigate()
@@ -247,7 +246,7 @@ export default function SignUpPage() {
)}
{activeTab === 'social' && (
-
+ {/* */}
)}
diff --git a/tsconfig.json b/tsconfig.json
index a7fc6fb..66eda50 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,6 +5,7 @@
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
+ "types": ["vite/client"],
/* Bundler mode */
"moduleResolution": "bundler",
diff --git a/yarn.lock b/yarn.lock
index 1ff48d2..f6de39e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -11249,10 +11249,10 @@ react-error-overlay@^6.0.11:
resolved "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz"
integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==
-react-icons@^4.8.0:
- version "4.10.1"
- resolved "https://registry.npmjs.org/react-icons/-/react-icons-4.10.1.tgz"
- integrity sha512-/ngzDP/77tlCfqthiiGNZeYFACw85fUjZtLbedmJ5DTlNDIwETxhwBzdOJ21zj4iJdvc0J3y7yOsX3PpxAJzrw==
+react-icons@^5.3.0:
+ version "5.3.0"
+ resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-5.3.0.tgz#ccad07a30aebd40a89f8cfa7d82e466019203f1c"
+ integrity sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg==
react-is@^16.13.1, react-is@^16.7.0:
version "16.13.1"