Fix missing close button for success notice

[MAILPOET-3435]
This commit is contained in:
Jan Lysý
2021-02-18 14:33:06 +01:00
committed by Veljko V
parent c5a11b2bd8
commit 93d79c7f94

View File

@@ -52,7 +52,7 @@ const Notice = ({
if (hidden) return null;
const content = (
<div ref={elementRef} className={`notice ${type}`}>
<div ref={elementRef} className={`notice ${type} ${closable ? 'is-dismissible' : ''}`}>
{children}
{closable && (
<button type="button" className="notice-dismiss" onClick={close}>