Skip to content

Commit

Permalink
fix(build): Client build error due to missing Suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Nov 6, 2024
1 parent 481ac79 commit 50d20e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions client/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Metadata } from "next";
import dynamic from "next/dynamic";
import { Suspense } from "react";

import Navigation from "@/components/navigation";
import { SidebarProvider } from "@/components/ui/sidebar";
Expand All @@ -19,8 +20,10 @@ export default function Home() {
return (
<main className="h-svh w-svw">
<SidebarProvider className="flex h-full w-full flex-col-reverse xl:block">
<Navigation />
<Map />
<Suspense>
<Navigation />
<Map />
</Suspense>
</SidebarProvider>
</main>
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/ui/collapsible.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
import React from "react";
import * as React from "react";

import { cn } from "@/lib/utils";

Expand Down

0 comments on commit 50d20e7

Please sign in to comment.