diff --git a/src/features/minihome/MiniHome.tsx b/src/features/minihome/MiniHome.tsx index 989240c..2f72345 100644 --- a/src/features/minihome/MiniHome.tsx +++ b/src/features/minihome/MiniHome.tsx @@ -51,7 +51,7 @@ export default function MiniHome({ windowId, ownerId, tab = MINIHOME_TABS.home } ))} - + diff --git a/src/features/minihome/home/HomePage.tsx b/src/features/minihome/home/HomePage.tsx index 43a1425..4c9292c 100644 --- a/src/features/minihome/home/HomePage.tsx +++ b/src/features/minihome/home/HomePage.tsx @@ -50,6 +50,7 @@ export default function HomePage({ const [posts, setPosts] = useState([]); useEffect(() => { + setPosts([]); const fetchHomePage = async () => { try { if (!user) { @@ -134,13 +135,13 @@ export default function HomePage({ setImages(mappedImages); } - // 게시물 정보 가져오기 (최근 3개) + // 게시물 정보 가져오기 (최근 6개) const { data: postRows, error: postError } = await supabase .from("homepage_posts") .select("id, title, created_at, visibility") .eq("homepage_id", homepage.id) .order("created_at", { ascending: false }) - .limit(3); + .limit(6); if (postError) { throw postError; @@ -228,18 +229,18 @@ export default function HomePage({ }; return ( -
+
{/* 왼쪽 프로필 영역 */} -
+
{/* 프로필 이미지 */} - + {/* 이름 */}

{nickname}

{/* 소개글 */} -
+

{bio}

@@ -267,7 +268,7 @@ export default function HomePage({
{/* 오른쪽 콘텐츠 */} -
+
{/* 사진첩 */}
@@ -315,10 +316,13 @@ export default function HomePage({
    - {posts.map((post) => ( + {posts.map((post, index) => (
  • = 3 && "hidden @2xl:flex" + )} > {post.title}