srf-feathers 1.7.0 → 1.7.1
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.esm.js +1 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -4001,7 +4001,7 @@ styleInject(css_248z);
|
|
|
4001
4001
|
var ConfirmButton = function (_a) {
|
|
4002
4002
|
var modifier = _a.modifier, _b = _a.buttonModifier, buttonModifier = _b === void 0 ? [] : _b, _c = _a.onConfirmationCallback, onConfirmationCallback = _c === void 0 ? function () { } : _c, _d = _a.callback, callback = _d === void 0 ? function () { } : _d, _e = _a.onAbortCallback, onAbortCallback = _e === void 0 ? function () { } : _e, _f = _a.text, text = _f === void 0 ? 'Löschen' : _f, _g = _a.confirmText, confirmText = _g === void 0 ? 'Sind Sie sicher?' : _g, _h = _a.disabled, disabled = _h === void 0 ? false : _h, _j = _a.allowInstantConfirmation, allowInstantConfirmation = _j === void 0 ? false : _j, _k = _a.allowInstantDeletion, allowInstantDeletion = _k === void 0 ? false : _k, _l = _a.iconsOnly, iconsOnly = _l === void 0 ? false : _l, icon = _a.icon;
|
|
4003
4003
|
var _m = useState(false), confirming = _m[0], setConfirming = _m[1];
|
|
4004
|
-
var _o = useState(
|
|
4004
|
+
var _o = useState(0), disabledCountdown = _o[0], setDisabledCountdown = _o[1];
|
|
4005
4005
|
useEffect(function () {
|
|
4006
4006
|
if (disabledCountdown > 0) {
|
|
4007
4007
|
var timer_1 = setTimeout(function () {
|