@decisiv/ui-components 2.0.1 → 2.0.2-alpha.3
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.
|
@@ -71,11 +71,8 @@ function Avatar(props, ref) {
|
|
|
71
71
|
shouldUseGravatar = _useGravatar2[1];
|
|
72
72
|
|
|
73
73
|
(0, _react.useEffect)(function () {
|
|
74
|
-
if (!(0, _isEmpty.default)(kind))
|
|
75
|
-
|
|
76
|
-
console.warn('[decisiv] The `kind` prop for the `Avatar` component has been deprecated. Use `color` + `palette` instead.');
|
|
77
|
-
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
78
|
-
|
|
74
|
+
if (!(0, _isEmpty.default)(kind)) window.console && // eslint-disable-next-line no-console
|
|
75
|
+
console.warn('[KeyDesignSystems] The `kind` prop for the `Avatar` component has been deprecated. Please use `color` + `palette` instead.'); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
79
76
|
}, []); // This is done to not break the now deprecated `secondary` kind variant. Should be removed in the future.
|
|
80
77
|
|
|
81
78
|
var componentColor = kind === 'secondary' ? 'licoriceMousse' : color;
|