We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e2c848 commit 033b26eCopy full SHA for 033b26e
components/DashboardV2/V2Navbar.tsx
@@ -1,6 +1,6 @@
1
"use client";
2
import { ChevronsDown, Github, Menu } from "lucide-react";
3
-import React from "react";
+import React , { Suspense } from "react";
4
import {
5
Sheet,
6
SheetContent,
@@ -73,7 +73,7 @@ const featureList: FeatureProps[] = [
73
},
74
];
75
76
-export const V2Navbar = () => {
+export const NavigationContent = () => {
77
const [isOpen, setIsOpen] = React.useState(false);
78
const { user, loading } = useAuth();
79
const router = useRouter();
@@ -224,3 +224,11 @@ export const V2Navbar = () => {
224
</header>
225
);
226
};
227
+
228
+export const V2Navbar = () => {
229
+ return (
230
+ <Suspense fallback={<div>Loading...</div>}>
231
+ <NavigationContent />
232
+ </Suspense>
233
+ );
234
+};
0 commit comments