diff --git a/src/components/app-shell.tsx b/src/components/app-shell.tsx index 2ef2859..d72569f 100644 --- a/src/components/app-shell.tsx +++ b/src/components/app-shell.tsx @@ -1,8 +1,10 @@ import { Link, useLocation, useNavigate } from "@tanstack/react-router"; import { useAuth } from "@/lib/auth"; import { Button } from "@/components/ui/button"; +import { Badge } from "@/components/ui/badge"; import { HeaderTimer } from "@/components/timer/header-timer"; import { QuickAddTime, QuickAddExpense } from "@/components/quick-add/quick-add"; +import { supabase } from "@/integrations/supabase/client"; import { Briefcase, Users, @@ -17,9 +19,10 @@ import { FolderArchive, ClipboardList, Contact, + MessageSquare, } from "lucide-react"; import { cn } from "@/lib/utils"; -import type { ReactNode } from "react"; +import { useEffect, useState, useCallback, type ReactNode } from "react"; interface NavItem { to: string; @@ -33,6 +36,7 @@ const NAV: NavItem[] = [ { to: "/clients", label: "Clients", icon: Users }, { to: "/cases", label: "Cases", icon: Briefcase }, { to: "/contacts", label: "Contacts", icon: Contact }, + { to: "/messages", label: "Messages", icon: MessageSquare }, { to: "/status", label: "Status Updates", icon: ClipboardList }, { to: "/collections", label: "Collections", icon: Wallet }, { to: "/documents", label: "Documents", icon: FileSignature }, diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 8365021..54b4d36 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -574,12 +574,3 @@ const rootRouteChildren: RootRouteChildren = { export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) ._addFileTypes() - -import type { getRouter } from './router.tsx' -import type { createStart } from '@tanstack/react-start' -declare module '@tanstack/react-start' { - interface Register { - ssr: true - router: Awaited> - } -}