@devtron-labs/devtron-fe-common-lib 0.0.10-beta-17 → 0.0.10-beta-18

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 CHANGED
@@ -22922,7 +22922,7 @@ var ImageTagsContainer = function (_a) {
22922
22922
  var customError = __assign(__assign({}, err), { errors: [
22923
22923
  __assign(__assign({}, (_e = err.errors) === null || _e === void 0 ? void 0 : _e[0]), { userMessage: (_g = (_f = err.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.internalMessage }),
22924
22924
  ] });
22925
- showError(customError);
22925
+ toast.error(customError);
22926
22926
  errorStateHandling(err.errors);
22927
22927
  }
22928
22928
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.10-beta-17",
3
+ "version": "0.0.10-beta-18",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -7,7 +7,7 @@ import { ReactComponent as Question } from '../Assets/Icon/ic-help-outline.svg'
7
7
  import { ReactComponent as EditIcon } from '../Assets/Icon/ic-pencil.svg'
8
8
  import { ReactComponent as Redo } from '../Assets/Icon/ic-arrow-counter-clockwise.svg'
9
9
  import { ReactComponent as Minus } from '../Assets/Icon/ic-minus.svg'
10
-
10
+ import { toast } from 'react-toastify'
11
11
  import { ReactComponent as Info } from '../Assets/Icon/ic-info-filled.svg'
12
12
  import { ReactComponent as Error } from '../Assets/Icon/ic-warning.svg'
13
13
  import { ReactComponent as Warning } from '../Assets/Icon/ic-error-exclamation.svg'
@@ -268,7 +268,7 @@ export const ImageTagsContainer = ({
268
268
  },
269
269
  ],
270
270
  }
271
- showError(customError)
271
+ toast.error(customError)
272
272
  errorStateHandling(err.errors)
273
273
  } else {
274
274
  showError(err)