File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { cookies } from "next/headers";
22import type { Theme } from "type" ;
33import { Wave } from "@/components/Header/Wave" ;
44import { HeroImage } from "@/components/HeroImage" ;
5- import NewestPost from "@/components/Main/NewestPost" ;
65import { FeatherIcon } from "@/components/Main/NewestPost/FeatherIcon" ;
76import { RootLayout } from "@/features/RootLayout" ;
87import {
@@ -11,6 +10,12 @@ import {
1110 Title ,
1211 TitleWrapper ,
1312} from "./page.style" ;
13+ import dynamic from "next/dynamic" ;
14+ import { FrontMatterLoading } from "@/components/Skeletons/ui/ContentLoading" ;
15+
16+ const NewestPost = dynamic ( ( ) => import ( "@/components/Main/NewestPost" ) , {
17+ loading : ( ) => < FrontMatterLoading length = { 2 } /> ,
18+ } ) ;
1419
1520export default async function Page ( ) {
1621 const savedTheme = ( await cookies ( ) ) . get ( "color-theme" ) ?. value || "light" ;
You can’t perform that action at this time.
0 commit comments