mirror of
				https://github.com/i701/sarlink-portal.git
				synced 2025-10-31 16:07:00 +00:00 
			
		
		
		
	- Updated login and signup pages to include session checks and redirection based on user authentication status. - Introduced QueryProvider for managing server state in the application. - Enhanced user experience by integrating session management in the devices and payments dashboard. - Added new user management features with role-based access control in the sidebar. - Created new components for user devices and payments, improving the overall structure and maintainability of the dashboard. - Implemented a table component for better data presentation in user-related views.
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { ThemeProvider } from "@/components/theme-provider";
 | |
| 
 | |
| import type { Metadata } from "next";
 | |
| import { Barlow } from "next/font/google";
 | |
| import NextTopLoader from "nextjs-toploader";
 | |
| import { Toaster } from "sonner";
 | |
| import "./globals.css";
 | |
| import QueryProvider from "@/components/query-provider";
 | |
| const barlow = Barlow({
 | |
| 	subsets: ["latin"],
 | |
| 	weight: ["100", "300", "400", "500", "600", "700", "800", "900"],
 | |
| 	variable: "--font-barlow",
 | |
| });
 | |
| 
 | |
| export const metadata: Metadata = {
 | |
| 	title: "Create Next App",
 | |
| 	description: "Generated by create next app",
 | |
| };
 | |
| 
 | |
| export default function RootLayout({
 | |
| 	children,
 | |
| }: Readonly<{
 | |
| 	children: React.ReactNode;
 | |
| }>) {
 | |
| 	return (
 | |
| 		<html lang="en" suppressHydrationWarning>
 | |
| 			<body className={`${barlow.variable} antialiased font-sans`}>
 | |
| 				<NextTopLoader showSpinner={false} zIndex={9999} />
 | |
| 				<Toaster richColors />
 | |
| 				<ThemeProvider
 | |
| 					attribute="class"
 | |
| 					defaultTheme="system"
 | |
| 					enableSystem
 | |
| 					disableTransitionOnChange
 | |
| 				>
 | |
| 					<QueryProvider>{children}</QueryProvider>
 | |
| 				</ThemeProvider>
 | |
| 			</body>
 | |
| 		</html>
 | |
| 	);
 | |
| }
 |