From 175279dd49e2ce5926706964356cbdf49e65bf84 Mon Sep 17 00:00:00 2001 From: Yoonju Jeon <40294277+yoonju3221@users.noreply.github.com> Date: Wed, 29 May 2024 15:14:38 +0900 Subject: [PATCH] Update Home.tsx --- src/pages/Home.tsx | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 18a981e..d0e1abe 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -1,35 +1,9 @@ import { useEffect, useState } from 'react'; -import { getPostById, getPostList } from '../api'; +import { getPostList } from '../api'; import PostListItem from '../components/PostListItem'; -import { IResponsePostList, TAG } from '../api/types'; +import { IResponsePostList} from '../api/types'; import NoPostList from '../components/NoPostList'; -const list = [ - { - post: { - id: 1, - title: '1번 게시글', - contents: '내용', - tag: TAG.REACT, - }, - }, - { - post: { - id: 2, - title: '2번 게시글', - contents: '내용', - tag: TAG.REACT, - }, - }, - { - post: { - id: 3, - title: '3번 게시글', - contents: '내용', - tag: TAG.REACT, - }, - }, -]; const Home = () => { const [postList, setPostList] = useState([]);