diff --git a/src/App.tsx b/src/App.tsx index 64c3359..b1d60d3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import './App.css' -import { CommentInput, CommentItem, CommentListContainer, CommentPagination, SubCommentData } from './Comment'; +import { CommentInput, CommentItem, CommentListContainer, CommentPagination, PostListControls, SubCommentData } from './Comment'; import CommentHeader from './CommentHeader'; import { Footer } from './Footer'; import { GalleryContent } from './Gallery'; @@ -111,52 +111,52 @@ const tableData: TableRowData[] = [ // Sample data - replace with your actual data source/props const comments: SubCommentData[] = [ - { - id: 1, - author: { type: 'IP', ip: '222.116' }, // Assuming author is an object with type and name - text: '너 지금 상현이햄을 ■■라고', - timestamp: '03.31 17:44:25', - showDelete: true, - }, - { - id: 2, + { + id: 1, + author: { type: 'IP', ip: '222.116' }, // Assuming author is an object with type and name + text: '너 지금 상현이햄을 ■■라고', + timestamp: '03.31 17:44:25', + showDelete: true, + }, + { + id: 2, - author: { type: "IP", ip: "218.144" }, - text: '미국인들도 저사람 얘기할때마다 동양인이 어쩌고랑 엮는데 왤케화남ㅋㅋ', - timestamp: '03.31 18:16:45', - showDelete: true, - }, - { - id: 3, + author: { type: "IP", ip: "218.144" }, + text: '미국인들도 저사람 얘기할때마다 동양인이 어쩌고랑 엮는데 왤케화남ㅋㅋ', + timestamp: '03.31 18:16:45', + showDelete: true, + }, + { + id: 3, - author: { type: "IP", ip: "183.96" }, + author: { type: "IP", ip: "183.96" }, - text: '다른 나라랑 다르게 미국에선 ~계 미국인이라는 정체성이 확고하고 사회적인 인식도 그럼', - timestamp: '03.31 18:18:40', - showDelete: true, - }, - { - id: 4, - author: { type: "semi-nickname", nickname: "ㅇㅇ" }, - text: '이새낀 미국을 모르노 ㅋㅋㅋㅋ', - timestamp: '03.31 20:34:54', - showDelete: false, // No delete button in this example - }, - { - id: 5, - author: { type: "semi-nickname", nickname: "ㅇㅇ" }, - text: '어어 내려놔라', - timestamp: '03.31 21:16:46', - showDelete: false, - }, - { - id: 6, - author: { type: "nickname", nickname: '티르칸쟈카' }, - text: '원종원종아...', - timestamp: '03.31 21:23:59', - showDelete: false, - }, - // Add more comment objects as needed + text: '다른 나라랑 다르게 미국에선 ~계 미국인이라는 정체성이 확고하고 사회적인 인식도 그럼', + timestamp: '03.31 18:18:40', + showDelete: true, + }, + { + id: 4, + author: { type: "semi-nickname", nickname: "ㅇㅇ" }, + text: '이새낀 미국을 모르노 ㅋㅋㅋㅋ', + timestamp: '03.31 20:34:54', + showDelete: false, // No delete button in this example + }, + { + id: 5, + author: { type: "semi-nickname", nickname: "ㅇㅇ" }, + text: '어어 내려놔라', + timestamp: '03.31 21:16:46', + showDelete: false, + }, + { + id: 6, + author: { type: "nickname", nickname: '티르칸쟈카' }, + text: '원종원종아...', + timestamp: '03.31 21:23:59', + showDelete: false, + }, + // Add more comment objects as needed ]; @@ -164,49 +164,51 @@ function App() { return (