@bigbinary/neeto-tags-frontend 0.0.21 → 0.0.22
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/dist/index.js +3 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6830,9 +6830,6 @@ var useTagsForm = function useTagsForm(_ref) {
|
|
|
6830
6830
|
mutate = _tagModification.mutate,
|
|
6831
6831
|
isSubmitting = _tagModification.isLoading;
|
|
6832
6832
|
|
|
6833
|
-
var _useTranslation = useTranslation(),
|
|
6834
|
-
t = _useTranslation.t;
|
|
6835
|
-
|
|
6836
6833
|
var handleSubmit = function handleSubmit(values, _ref2) {
|
|
6837
6834
|
var _values$description;
|
|
6838
6835
|
|
|
@@ -6853,12 +6850,9 @@ var useTagsForm = function useTagsForm(_ref) {
|
|
|
6853
6850
|
onSuccess: function onSuccess() {
|
|
6854
6851
|
!isEdit && goToFirstPage();
|
|
6855
6852
|
onClose();
|
|
6856
|
-
Toastr.success(isEdit ? t("updateSuccess") : t("createSuccess"));
|
|
6857
6853
|
},
|
|
6858
|
-
onError: function onError(
|
|
6859
|
-
var errors = _ref3.errors;
|
|
6854
|
+
onError: function onError() {
|
|
6860
6855
|
resetForm();
|
|
6861
|
-
Toastr.error(errors === null || errors === void 0 ? void 0 : errors.join(", "));
|
|
6862
6856
|
}
|
|
6863
6857
|
});
|
|
6864
6858
|
};
|
|
@@ -7596,7 +7590,7 @@ var Tags = function Tags(_ref) {
|
|
|
7596
7590
|
tagType = _useState2[0],
|
|
7597
7591
|
setTagType = _useState2[1];
|
|
7598
7592
|
|
|
7599
|
-
var _useState3 = useState(
|
|
7593
|
+
var _useState3 = useState(false),
|
|
7600
7594
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
7601
7595
|
isMenuOpen = _useState4[0],
|
|
7602
7596
|
setIsMenuOpen = _useState4[1];
|
|
@@ -7609,6 +7603,7 @@ var Tags = function Tags(_ref) {
|
|
|
7609
7603
|
|
|
7610
7604
|
var routes = createRoutes(_objectSpread(_objectSpread({}, config), {}, {
|
|
7611
7605
|
handleMenuToggle: handleMenuToggle,
|
|
7606
|
+
displayMenu: displayMenu,
|
|
7612
7607
|
tagType: tagType
|
|
7613
7608
|
}));
|
|
7614
7609
|
return /*#__PURE__*/React.createElement("div", {
|