tek-wallet 0.0.422 → 0.0.424
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.
|
@@ -207,7 +207,7 @@ var WithdrawFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
207
207
|
pushNotification({
|
|
208
208
|
message: "Test notification",
|
|
209
209
|
type: "success",
|
|
210
|
-
id:
|
|
210
|
+
id: new Date().getTime().toString(),
|
|
211
211
|
});
|
|
212
212
|
};
|
|
213
213
|
(0, react_1.useEffect)(function () {
|
|
@@ -116,7 +116,9 @@ function RealtimeProvider(_a) {
|
|
|
116
116
|
horizontal: (_e = (_d = notification === null || notification === void 0 ? void 0 : notification.anchorOrigin) === null || _d === void 0 ? void 0 : _d.horizontal) !== null && _e !== void 0 ? _e : "right",
|
|
117
117
|
}, onClose: function () {
|
|
118
118
|
closeNotification(notification.id);
|
|
119
|
-
}, slots: { transition: GrowTransition },
|
|
119
|
+
}, slots: { transition: GrowTransition }, autoHideDuration: (_f = notification.duration) !== null && _f !== void 0 ? _f : 2000, children: (0, jsx_runtime_1.jsx)(material_1.Alert, { onClose: function () {
|
|
120
|
+
closeNotification(notification.id);
|
|
121
|
+
}, severity: notification.type, variant: "outlined", sx: { width: "100%" }, children: notification.message }) }, notification.id));
|
|
120
122
|
}) })] }));
|
|
121
123
|
}
|
|
122
124
|
exports.default = RealtimeProvider;
|