Skip to content
Snippets Groups Projects
Commit ebe6e1a3 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

show toast allows html

parent 580e8ac0
No related branches found
No related tags found
3 merge requests!379Merge 18.1.0,!37818.1.0 to devel,!375show toast allows html
Pipeline #100782 passed with warnings
...@@ -19,9 +19,8 @@ export const Toast = ({ type, message, onDismiss }: ToastArgs): React.ReactNode ...@@ -19,9 +19,8 @@ export const Toast = ({ type, message, onDismiss }: ToastArgs): React.ReactNode
'h-full overflow-y-auto text-base font-bold', 'h-full overflow-y-auto text-base font-bold',
type === 'error' ? 'text-red-500' : 'text-green-500', type === 'error' ? 'text-red-500' : 'text-green-500',
)} )}
> dangerouslySetInnerHTML={{ __html: message }}
{message} />
</p>
<button type="button" onClick={onDismiss} className="ml-auto flex-none"> <button type="button" onClick={onDismiss} className="ml-auto flex-none">
<Icon name="close" className="ml-3 h-7 w-7 fill-font-500" /> <Icon name="close" className="ml-3 h-7 w-7 fill-font-500" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment