Coerce remaining toast variants (hooks)
cgen-d8d51c7853bf45f2988ae84a6a1fb3b4
This commit is contained in:
parent
4764de3e0e
commit
67cf45ffbc
1 changed files with 3 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ export const useAethexToast = () => {
|
||||||
const error = (options: AethexToastOptions) => {
|
const error = (options: AethexToastOptions) => {
|
||||||
return baseToast({
|
return baseToast({
|
||||||
title: `⚡ ${options.title || "Error"}`,
|
title: `⚡ ${options.title || "Error"}`,
|
||||||
description: options.description,
|
description: normalize(options.description),
|
||||||
duration: options.duration || 5000,
|
duration: options.duration || 5000,
|
||||||
variant: "destructive",
|
variant: "destructive",
|
||||||
});
|
});
|
||||||
|
|
@ -42,7 +42,7 @@ export const useAethexToast = () => {
|
||||||
const warning = (options: AethexToastOptions) => {
|
const warning = (options: AethexToastOptions) => {
|
||||||
return baseToast({
|
return baseToast({
|
||||||
title: `⚠️ ${options.title || "Warning"}`,
|
title: `⚠️ ${options.title || "Warning"}`,
|
||||||
description: options.description,
|
description: normalize(options.description),
|
||||||
duration: options.duration || 5000,
|
duration: options.duration || 5000,
|
||||||
variant: "warning" as any,
|
variant: "warning" as any,
|
||||||
});
|
});
|
||||||
|
|
@ -51,7 +51,7 @@ export const useAethexToast = () => {
|
||||||
const info = (options: AethexToastOptions) => {
|
const info = (options: AethexToastOptions) => {
|
||||||
return baseToast({
|
return baseToast({
|
||||||
title: `ℹ️ ${options.title || "Information"}`,
|
title: `ℹ️ ${options.title || "Information"}`,
|
||||||
description: options.description,
|
description: normalize(options.description),
|
||||||
duration: options.duration || 5000,
|
duration: options.duration || 5000,
|
||||||
variant: "info" as any,
|
variant: "info" as any,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue