feat(chat-window): add error handling

This commit is contained in:
ItzCrazyKns 2024-05-04 14:56:54 +05:30
parent 4bf69dfdda
commit e3fef3a1be
No known key found for this signature in database
GPG key ID: 8162927C7CCE3065
4 changed files with 31 additions and 1 deletions

View file

@ -3,6 +3,7 @@ import { Montserrat } from 'next/font/google';
import './globals.css';
import { cn } from '@/lib/utils';
import Sidebar from '@/components/Sidebar';
import { Toaster } from 'sonner';
const montserrat = Montserrat({
weight: ['300', '400', '500', '700'],
@ -26,6 +27,15 @@ export default function RootLayout({
<html className="h-full" lang="en">
<body className={cn('h-full', montserrat.className)}>
<Sidebar>{children}</Sidebar>
<Toaster
toastOptions={{
unstyled: true,
classNames: {
toast:
'bg-[#111111] text-white rounded-lg p-4 flex flex-row items-center space-x-2',
},
}}
/>
</body>
</html>
);