From 5250c6ff5d2e77281c993425503ac33722077180 Mon Sep 17 00:00:00 2001 From: ruru <142723369+ruru-m07@users.noreply.github.com> Date: Wed, 21 Feb 2024 19:35:08 +0530 Subject: [PATCH] FIX #33 from #32 close #33 Co-Authored-By: ruru --- app/page.tsx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index b250aa9..4cf7280 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -13,19 +13,12 @@ import { } from "@/components/ui/select"; import { useAuth } from "@/context/userContext"; import { cn } from "@/lib/utils"; +import { withAuth } from "@/protectedRouter"; import Image from "next/image"; import Link from "next/link"; import React from "react"; -interface AccountSwitcherProps { - isCollapsed: boolean; - accounts: { - label: string; - // label: string; - icon: React.ReactNode; - }[]; -} -export default function Page() { +const Page = () => { const { user } = useAuth(); const accounts = [ @@ -174,4 +167,6 @@ export default function Page() { ); -} +}; + +export default withAuth(Page);