feat(web): add SessionWatcher component for session management and handle session expiration
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { ReactNode } from "react";
|
||||
import Sidebar from "@/components/sidebar";
|
||||
import { ReactQueryProvider } from "@/components/query-provider";
|
||||
import { SessionWatcher } from "@/components/session-watcher";
|
||||
|
||||
export default function DashboardLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<div className="flex h-dvh bg-background">
|
||||
<SessionWatcher />
|
||||
<Sidebar />
|
||||
|
||||
{/* Main content */}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist_Mono, Noto_Sans, Saira } from "next/font/google";
|
||||
import { Toast } from "@heroui/react";
|
||||
import "./globals.css";
|
||||
|
||||
const fontSaira = Saira({
|
||||
@@ -33,6 +34,7 @@ export default function RootLayout({
|
||||
<body
|
||||
className={`${fontSaira.variable} ${fontNotoSans.variable} ${fontMono.variable} antialiased`}
|
||||
>
|
||||
<Toast.Provider />
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user