diff --git a/client/src/__tests__/components/common/Card/PostCard.test.tsx b/client/src/__tests__/components/common/Card/PostCard.test.tsx index e4ff324..8b7fd01 100644 --- a/client/src/__tests__/components/common/Card/PostCard.test.tsx +++ b/client/src/__tests__/components/common/Card/PostCard.test.tsx @@ -60,6 +60,7 @@ describe("PostCard", () => { viewCount: 100, path: "/test-post", author: "작성자", + blogPlatform: "etc", }; render(); diff --git a/client/src/__tests__/mocks/data/posts.ts b/client/src/__tests__/mocks/data/posts.ts index 1629c04..ca38190 100644 --- a/client/src/__tests__/mocks/data/posts.ts +++ b/client/src/__tests__/mocks/data/posts.ts @@ -9,6 +9,7 @@ export const createMockPost = (override = {}) => ({ authorImageUrl: "author-image.jpg", tags: ["React", "Testing"], likes: 50, + blogPlatform: "etc", ...override, }); diff --git a/client/src/api/mocks/data/posts.ts b/client/src/api/mocks/data/posts.ts index 3cf5be2..0f46188 100644 --- a/client/src/api/mocks/data/posts.ts +++ b/client/src/api/mocks/data/posts.ts @@ -10,6 +10,7 @@ export const generateMockPost = (id: number): Post => ({ path: "/", author: `작성자 ${(id % 5) + 1}`, thumbnail: `https://picsum.photos/640/480?random=${id}`, + blogPlatform: "etc", }); export const TOTAL_POSTS = Array.from({ length: 100 }, (_, i) => generateMockPost(i + 1)); diff --git a/client/src/components/admin/login/AdminLoginModal.tsx b/client/src/components/admin/login/AdminLoginModal.tsx index 652d757..b475c51 100644 --- a/client/src/components/admin/login/AdminLoginModal.tsx +++ b/client/src/components/admin/login/AdminLoginModal.tsx @@ -1,6 +1,6 @@ import { useState } from "react"; -import FormInput from "@/components/RssRegistration/FormInput"; +import { FormInput } from "@/components/RssRegistration/FormInput"; import { AlertDialog, AlertDialogAction, diff --git a/client/src/constants/dummyData.ts b/client/src/constants/dummyData.ts index f3dfbaf..c30bbd8 100644 --- a/client/src/constants/dummyData.ts +++ b/client/src/constants/dummyData.ts @@ -10,6 +10,7 @@ export const TRENDING_POSTS: Post[] = [ path: "/", author: "김개발", thumbnail: "https://picsum.photos/640/480?random=101", + blogPlatform: "etc", }, { id: 2, @@ -19,6 +20,7 @@ export const TRENDING_POSTS: Post[] = [ path: "/", author: "박프론트", thumbnail: "https://picsum.photos/640/480?random=102", + blogPlatform: "etc", }, { id: 3, @@ -28,7 +30,9 @@ export const TRENDING_POSTS: Post[] = [ path: "/", author: "이타스", thumbnail: "https://picsum.photos/640/480?random=103", + blogPlatform: "etc", }, + { id: 7, createdAt: new Date().toISOString(), @@ -37,6 +41,7 @@ export const TRENDING_POSTS: Post[] = [ path: "/", author: "윤백엔드", thumbnail: "https://picsum.photos/640/480?random=104", + blogPlatform: "etc", }, ];