From d2c9e13df722bda8b5480b6b283e71bff1855604 Mon Sep 17 00:00:00 2001 From: Alexandre Marques Date: Tue, 25 Mar 2025 21:36:21 +0000 Subject: [PATCH] chore: integrate CompaniesListSkeleton for improved loading states in category and location pages --- apps/web/src/app/(companies-list)/layout.tsx | 7 ++----- apps/web/src/app/category/[category]/layout.tsx | 2 +- apps/web/src/app/category/[category]/page.tsx | 3 ++- apps/web/src/app/location/[location]/layout.tsx | 3 ++- apps/web/src/app/location/[location]/page.tsx | 3 ++- apps/web/src/components/CompaniesListSkeleton.tsx | 11 +++++++++++ 6 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 apps/web/src/components/CompaniesListSkeleton.tsx diff --git a/apps/web/src/app/(companies-list)/layout.tsx b/apps/web/src/app/(companies-list)/layout.tsx index 8d09661..72e1e62 100644 --- a/apps/web/src/app/(companies-list)/layout.tsx +++ b/apps/web/src/app/(companies-list)/layout.tsx @@ -1,4 +1,5 @@ import CompaniesHeader from "@/components/CompaniesHeader"; +import { CompaniesListSkeleton } from "@/components/CompaniesListSkeleton"; import Footer from "@/components/Footer"; import { Skeleton } from "@/components/ui/skeleton"; import { LayoutProps } from "@/lib/types"; @@ -24,11 +25,7 @@ const AppLoading = () => {
-
- - - -
+ ); }; diff --git a/apps/web/src/app/category/[category]/layout.tsx b/apps/web/src/app/category/[category]/layout.tsx index 1cc4567..0a13cfc 100644 --- a/apps/web/src/app/category/[category]/layout.tsx +++ b/apps/web/src/app/category/[category]/layout.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; export default function CategoryPageLayout({ children }: LayoutProps) { return ( <> - Loading...}>{children} + {children}