mirror of https://github.com/BRAVO68WEB/shx.git
🔥 fixed toast not appearing
This commit is contained in:
parent
4527b564c1
commit
cfbf08e9b9
|
@ -1,22 +1,24 @@
|
|||
import './globals.css'
|
||||
import { Source_Code_Pro } from 'next/font/google'
|
||||
import './globals.css';
|
||||
import { Source_Code_Pro } from 'next/font/google';
|
||||
import Providers from '@/components/Providers';
|
||||
|
||||
const inter = Source_Code_Pro({subsets:['latin']})
|
||||
const inter = Source_Code_Pro({ subsets: ['latin'] });
|
||||
|
||||
export const metadata = {
|
||||
title: 'Create Next App',
|
||||
description: 'Generated by create next app',
|
||||
}
|
||||
title: 'Create Next App',
|
||||
description: 'Generated by create next app',
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
|
||||
return (
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={`${inter.className} bg-black text-white min-h-screen`}>{children}</body>
|
||||
<body className={`${inter.className} bg-black text-white min-h-screen`}>
|
||||
<Providers>{children}</Providers>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
'use client';
|
||||
import React from 'react';
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
|
||||
function Providers({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
<Toaster position={'top-right'} reverseOrder={false} />
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Providers;
|
Loading…
Reference in New Issue