Skip to content

Commit

Permalink
Fix sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 2, 2024
1 parent b286d6e commit 3910988
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions app/(dashboard)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { type ReactNode } from "react";
import React, { type ReactNode, Suspense } from "react";
import { Inter } from "next/font/google";
import Script from "next/script";
import { GoogleAnalytics } from "@next/third-parties/google";
Expand Down Expand Up @@ -56,7 +56,9 @@ const RootLayout = async ({
<body className={classNames(inter.className)}>
{ANNOUNCEMENT && <Announcement>{ANNOUNCEMENT}</Announcement>}
<SidebarProvider>
<AppSidebar />
<Suspense fallback={null}>
<AppSidebar />
</Suspense>
<main className="w-full bg-gray-50">
<Header breadcrumbs={breadcrumbs}>
<SidebarTrigger />
Expand Down
10 changes: 5 additions & 5 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ const sitemap = async (): Promise<MetadataRoute.Sitemap> => {
const makes = await fetchApi<Make[]>(`${API_URL}/make`);

return [
{
url: SITE_URL,
lastModified: new Date(),
changeFrequency: "monthly" as const,
},
// {
// url: SITE_URL,
// lastModified: new Date(),
// changeFrequency: "monthly" as const,
// },
{
url: `${SITE_URL}/cars`,
lastModified: new Date(),
Expand Down

0 comments on commit 3910988

Please sign in to comment.