feat: implement toast notifications for delete actions in dashboard pages

This commit is contained in:
Ardeman
2025-03-12 21:19:41 +08:00
parent 36b22d3f4a
commit 7ab83a4f66
7 changed files with 114 additions and 19 deletions
+3 -1
View File
@@ -11,6 +11,8 @@ const buttonVariants = cva(
variant: {
newsPrimary:
'bg-[#2E2F7C] text-white text-lg hover:bg-[#4C5CA0] hover:shadow transition active:bg-[#6970B4]',
newsDanger:
'bg-red-500 text-white text-lg hover:bg-red-600 hover:shadow transition active:bg-red-700',
newsPrimaryOutline:
'border-[3px] bg-[#2E2F7C] border-white text-white text-lg hover:bg-[#4C5CA0] hover:shadow-lg active:shadow-2xl transition active:bg-[#6970B4]',
newsSecondary:
@@ -21,7 +23,7 @@ const buttonVariants = cva(
size: {
default: 'h-[50px] w-[150px]',
block: 'h-[50px] w-full',
icon: 'h-9 w-9',
icon: 'h-9 w-9 rounded-full',
sm: 'h-8 rounded-md px-3 text-xs',
lg: 'h-10 rounded-md px-8',
fit: 'w-fit',