File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed
_components/TorchHistorySwiper Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
SwiperNavigation ,
11
11
} from "@/components/ui/swiper"
12
12
13
- import TorchHistoryCard from "./TorchHistoryCard"
13
+ import TorchHistoryCard from ".. /TorchHistoryCard"
14
14
15
15
import { getAvatarImage , type TorchHolderEvent } from "@/lib/torch"
16
16
Original file line number Diff line number Diff line change
1
+ import dynamic from "next/dynamic"
2
+
3
+ import Loading from "./loading"
4
+
5
+ export default dynamic ( ( ) => import ( "." ) , { ssr : false , loading : Loading } )
Original file line number Diff line number Diff line change
1
+ import { Skeleton } from "@/components/ui/skeleton"
2
+
3
+ const Loading = ( ) => (
4
+ < div className = "flex w-full flex-col items-center gap-6" >
5
+ < div className = "flex w-full items-center justify-center gap-12" >
6
+ < Skeleton className = "h-[400px] w-[240px] rounded-4xl" />
7
+ < Skeleton className = "h-[400px] w-[240px] rounded-4xl" />
8
+ < Skeleton className = "h-[400px] w-[240px] rounded-4xl" />
9
+ </ div >
10
+ < Skeleton className = "h-6 w-40 rounded-full" />
11
+ </ div >
12
+ )
13
+
14
+ export default Loading
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { adoptionStyles } from "./_components/data"
31
31
import InnovationSwiper from "./_components/InnovationSwiper/lazy"
32
32
import TenYearGlobe from "./_components/TenYearGlobe/lazy"
33
33
import TenYearHero from "./_components/TenYearHero"
34
- import TorchHistorySwiper from "./_components/TorchHistorySwiper"
34
+ import TorchHistorySwiper from "./_components/TorchHistorySwiper/lazy "
35
35
import Stories from "./_components/UserStories/lazy"
36
36
import {
37
37
getAdoptionCards ,
You can’t perform that action at this time.
0 commit comments