added color to sonner

This commit is contained in:
Bram Suurd
2024-05-16 23:50:43 +02:00
parent 244bf34e9e
commit dc618b3ea2
2 changed files with 3 additions and 4 deletions

View File

@@ -56,8 +56,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en" suppressHydrationWarning>
<head>
</head>
<head></head>
<body className={inter.className}>
<ThemeProvider
attribute="class"
@@ -70,7 +69,7 @@ export default function RootLayout({
<div className="flex w-full justify-center">
<div className="w-full max-w-7xl ">
{children}
<Toaster />
<Toaster richColors />
</div>
</div>
{/* <Footer /> */}

View File

@@ -32,7 +32,7 @@ function ScriptItem() {
function handleCopy(type: string, value: any) {
navigator.clipboard.writeText(value);
toast(
toast.success(
<div className="flex items-center gap-2">
<Clipboard className="h-4 w-4" />
<span>Copied {type} to clipboard</span>