From 6d3d1dabb0037db7e2daf965401a2aa52ab6968a Mon Sep 17 00:00:00 2001 From: RizqiSyahrendra Date: Mon, 3 Mar 2025 17:35:51 +0700 Subject: [PATCH] fix: contact section fetch and suspense --- src/app/(main)/layout.tsx | 7 +- src/components/Contacts/Contact.tsx | 155 ++++++++++++++++++++++++++-- src/components/Footer.tsx | 13 ++- src/components/Homepage.tsx | 20 ++-- src/services/payload/contact.ts | 9 +- 5 files changed, 176 insertions(+), 28 deletions(-) diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index 75bed91..6521bf7 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -1,5 +1,5 @@ import "@/app/globals.css"; -import Footer, { FooterSkeleton } from "@/components/Footer"; +import Footer from "@/components/Footer"; import Header from "@/components/Header"; import InitialScript from "@/components/InitialScript"; import { navMenuData } from "@/data/menu"; @@ -8,7 +8,6 @@ import "@public/assets/css/styles.css"; import "jarallax/dist/jarallax.min.css"; import { Roboto } from "next/font/google"; import "photoswipe/dist/photoswipe.css"; -import { Suspense } from "react"; import "react-modal-video/css/modal-video.css"; import "swiper/css"; import "swiper/css/effect-fade"; @@ -31,9 +30,7 @@ export default function MainLayout({
{children}
- }> -