From 99b79e76fba9e791fa4dc3a692914959db458955 Mon Sep 17 00:00:00 2001 From: JAEMOON Date: Sun, 15 Oct 2023 23:39:47 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20Liked=20Page=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/liked/index.tsx | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/pages/liked/index.tsx b/pages/liked/index.tsx index 6706e5c..947779e 100644 --- a/pages/liked/index.tsx +++ b/pages/liked/index.tsx @@ -3,7 +3,7 @@ import React from 'react'; import NoLiked from '@/public/icons/noLiked.svg'; import useModal from '@/hooks/useModal'; import DefaultLayout from '@/components/layouts/DefaultLayout'; -import { Nav } from '@/components/index.tsx'; +import { Nav, Typography } from '@/components/index.tsx'; import { useRouter } from 'next/router'; // TODO 데이터가 구체화되면 바꿔줘야함 interface MyPostingProps { @@ -47,13 +47,33 @@ export default function Liked({ roomInfo }: MyPostingProps) { ); }; + const LikedComponent = () => { + return ( +
+ + There are {`${(roomInfo || []).length} rooms`} in total! + + {/* {rooms.map((room, idx) => ( +
+ handleCardClick(room.id)} /> +
+ ))} */} + {/*
*/} +
+
+
+
+
+
+
+ ); + }; + /** * 좋아요 있을 때 보여주는 Component (TODO : 구체화 해줘야함) */ - const MyLiked = () => { - return
호이호이
; - }; - return (roomInfo || []).length === 0 ? : ; + return (roomInfo || []).length === 0 ? : ; } Liked.getLayout = function getLayout(page: React.ReactElement) {