@yongaricode
-용가리 먹방 시작~
+용가리가 코드를 짠다~
@hyuna
diff --git a/src/components/Home/PopularBox.tsx b/src/components/Home/PopularBox.tsx index 4721a3e..4938778 100644 --- a/src/components/Home/PopularBox.tsx +++ b/src/components/Home/PopularBox.tsx @@ -1,15 +1,18 @@ -import MenuBookIcon from '@mui/icons-material/MenuBook'; -import Bookie from '../../../public/icons/home/bookie.png'; +import { useNavigate } from 'react-router-dom'; import Marker from '../../../public/icons/zip/markerHome.svg?react'; const PopularBox = () => { + const nav = useNavigate(); return ( -+
nav(`/zip?search=${bookstore}`)}> {i + 1}. {bookstore}
))} @@ -39,7 +41,7 @@ const Ranking = () => { {/* 오른쪽 열 */}+
nav(`/zip?search=${bookstore}`)}> {i + 6}. {bookstore}
// 6부터 시작 ))} diff --git a/src/components/Home/RegionBox.tsx b/src/components/Home/RegionBox.tsx index 9e0baf0..0c9cc98 100644 --- a/src/components/Home/RegionBox.tsx +++ b/src/components/Home/RegionBox.tsx @@ -1,13 +1,16 @@ import LocationSearchingIcon from '@mui/icons-material/LocationSearching'; +import { useNavigate } from 'react-router-dom'; interface RegionBoxProps { text: string; } const RegionBox = ({ text }: RegionBoxProps) => { + const nav = useNavigate(); return ({text}
diff --git a/src/components/Home/ReportBookstore.tsx b/src/components/Home/ReportBookstore.tsx index 68c6bc7..c588d6b 100644 --- a/src/components/Home/ReportBookstore.tsx +++ b/src/components/Home/ReportBookstore.tsx @@ -1,9 +1,13 @@ import sunglass from '../../../public/icons/home/sunglass.png'; import hand from '../../../public/icons/home/hand.png'; +import toast from 'react-hot-toast'; const ReportBookstore = () => { return ( -To. zipzip이들
diff --git a/src/components/Home/ReportStore.tsx b/src/components/Home/ReportStore.tsx index 0d3d92f..0245aca 100644 --- a/src/components/Home/ReportStore.tsx +++ b/src/components/Home/ReportStore.tsx @@ -1,17 +1,22 @@ import Vector from '../../../public/icons/home/Vector.svg?react'; -const ReportStore = () => { +interface ReportStore { + onClick: () => void; +} + +const ReportStore = ({ onClick }: ReportStore) => { + const name = localStorage.getItem('nickname'); return ( -
제보해주세요!
독서광시온님의 제보가 서점ZIP을 살려요!
+{name}님의 제보가 서점ZIP을 살려요!
더 나은 서점ZIP 서비스를 위해
독립 서점 제보하러 가기
“
- 사이키쿠스오가 될래...
+ {reviews.review.length > 15 ? `${reviews.review.slice(0, 15)}...` : reviews.review}
”
독립서점 제보하기
-용가리님만 알고있는 독립서점을 제보해주세요!
+{nickname}님만 알고있는 독립서점을 제보해주세요!
+ 로그아웃 +
+나의 책장
+리뷰 관리
+
- 나에게
-
잘 맞는
- 서점 찾아보기
+
+ 2025
+ 서울국제도서전
- 유명 연예인들의
- 추천도서
-
나의
책 읽는 속도
알아보기
diff --git a/src/components/Zip/TagBar.tsx b/src/components/Zip/TagBar.tsx
index d73ae51..4d6bae7 100644
--- a/src/components/Zip/TagBar.tsx
+++ b/src/components/Zip/TagBar.tsx
@@ -1,15 +1,22 @@
+import { useEffect, useState } from 'react';
+import { getHashTag } from '../../api/zip.api';
import FilterButton from '../../components/Button/FilterButton';
const TagBar = () => {
+ const [tags, setTag] = useState<{ tag: string }[]>([]);
+ useEffect(() => {
+ getHashTag().then((data) => {
+ setTag(data.data);
+ });
+ }, []);
+
return (