mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-02-02 20:27:48 +01:00
Working
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
export function useSuccessToast(title: string, description?: string) {
|
||||
export function useSuccessToast(title: string, color?: string, description?: string) {
|
||||
const toast = useToast()
|
||||
|
||||
toast.add({
|
||||
title,
|
||||
description,
|
||||
color: 'green',
|
||||
color: color || 'green',
|
||||
icon: 'i-ph:check-circle-duotone',
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user