Skip to content

Commit

Permalink
Update Home.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonju3221 authored May 29, 2024
1 parent 33d9e0e commit 175279d
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
@@ -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<IResponsePostList>([]);
Expand Down

0 comments on commit 175279d

Please # to comment.