From 1fa129272a149406f9f8290b646e453127b028dc Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 1 Feb 2024 14:50:51 +0100 Subject: [PATCH] Use toast body as default tag --- components/toast.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/toast.js b/components/toast.js index c96f6e31..d5b0daed 100644 --- a/components/toast.js +++ b/components/toast.js @@ -40,6 +40,7 @@ export const ToastProvider = ({ children }) => { variant: 'success', autohide: true, delay: 5000, + tag: options?.tag || body, ...options } return dispatchToast(toast) @@ -50,6 +51,7 @@ export const ToastProvider = ({ children }) => { variant: 'warning', autohide: true, delay: 5000, + tag: options?.tag || body, ...options } return dispatchToast(toast) @@ -59,6 +61,7 @@ export const ToastProvider = ({ children }) => { body, variant: 'danger', autohide: false, + tag: options?.tag || body, ...options } return dispatchToast(toast)