(feat) add toast element

Implement the toast element belonging to heroUI into the project and perform testing by adding the toast registry into
the provider, then running it as an error handler during authentication.
This commit is contained in:
2025-09-12 22:24:52 +07:00
parent 4e7b939e93
commit 3e6eae5151
2 changed files with 19 additions and 2 deletions

View File

@ -1,7 +1,7 @@
"use client";
import React, { useEffect, useState } from "react";
import { HeroUIProvider } from "@heroui/react";
import { HeroUIProvider, ToastProvider } from "@heroui/react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { useRouter } from "next/navigation";
@ -17,6 +17,7 @@ const HeroUIWrapper = ({
return (
<HeroUIProvider navigate={router.push}>
<ToastProvider />
{mounted ? (
<NextThemesProvider attribute={"class"} defaultTheme="dark">
<main>{children}</main>