@typeolymp/ui-components 1.19.23 → 1.19.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js
CHANGED
|
@@ -8510,6 +8510,10 @@ var templateObject_1$D, templateObject_2$z;
|
|
|
8510
8510
|
|
|
8511
8511
|
var Alert = function (props) {
|
|
8512
8512
|
var _a = React$3.useState(true), isOpen = _a[0], setIsOpen = _a[1];
|
|
8513
|
+
React$3.useEffect(function () {
|
|
8514
|
+
if (!isOpen && props.afterClose)
|
|
8515
|
+
props.afterClose();
|
|
8516
|
+
}, [isOpen]);
|
|
8513
8517
|
var color = "green";
|
|
8514
8518
|
if (props.type === "error")
|
|
8515
8519
|
color = "red";
|