@bigbinary/neeto-tags-frontend 1.2.0 → 1.3.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/dist/index.cjs.js CHANGED
@@ -139,7 +139,9 @@ var Tags$2 = function Tags(_ref) {
139
139
  onTagDelete = _ref.onTagDelete,
140
140
  tagProps = _ref.tagProps,
141
141
  selectProps = _ref.selectProps,
142
- buttonProps = _ref.buttonProps;
142
+ buttonProps = _ref.buttonProps,
143
+ _ref$showSuccessToast = _ref.showSuccessToastr,
144
+ showSuccessToastr = _ref$showSuccessToast === void 0 ? false : _ref$showSuccessToast;
143
145
  var _useTranslation = reactI18next.useTranslation(),
144
146
  t = _useTranslation.t;
145
147
  var _useState = React.useState(false),
@@ -159,7 +161,7 @@ var Tags$2 = function Tags(_ref) {
159
161
  setAddTag(false);
160
162
  onTagSelect(event);
161
163
  // @ts-ignore
162
- neetoui.Toastr.success("", {
164
+ showSuccessToastr && neetoui.Toastr.success("", {
163
165
  icon: "👍",
164
166
  className: "w-20"
165
167
  });
@@ -167,7 +169,7 @@ var Tags$2 = function Tags(_ref) {
167
169
  var handleDeleteTag = function handleDeleteTag(tag) {
168
170
  onTagDelete(tag);
169
171
  // @ts-ignore
170
- neetoui.Toastr.success("", {
172
+ showSuccessToastr && neetoui.Toastr.success("", {
171
173
  icon: "👍",
172
174
  className: "w-20"
173
175
  });