@devtron-labs/devtron-fe-common-lib 0.0.42-beta-5 → 0.0.42-beta-7
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 +1 -1
- package/package.json +1 -1
- package/src/Common/Helper.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -9956,7 +9956,7 @@ function getRandomColor(email) {
|
|
|
9956
9956
|
var getAlphabetIcon = function (str, intialAlphabetClassName) {
|
|
9957
9957
|
if (!str)
|
|
9958
9958
|
return null;
|
|
9959
|
-
return (jsxRuntime.jsx("span", __assign({ className: "alphabet-icon__initial fs-13 icon-dim-20 flex cn-0 mr-8
|
|
9959
|
+
return (jsxRuntime.jsx("span", __assign({ className: "".concat(intialAlphabetClassName, " alphabet-icon__initial fs-13 icon-dim-20 flex cn-0 mr-8"), style: { backgroundColor: getRandomColor(str) } }, { children: str[0] })));
|
|
9960
9960
|
};
|
|
9961
9961
|
var getEmptyArrayOfLength = function (length) {
|
|
9962
9962
|
return Array.from({ length: length });
|
package/package.json
CHANGED
package/src/Common/Helper.tsx
CHANGED
|
@@ -120,7 +120,7 @@ export const getAlphabetIcon = (str: string, intialAlphabetClassName?: string) =
|
|
|
120
120
|
if (!str) return null
|
|
121
121
|
return (
|
|
122
122
|
<span
|
|
123
|
-
className={
|
|
123
|
+
className={`${intialAlphabetClassName} alphabet-icon__initial fs-13 icon-dim-20 flex cn-0 mr-8`}
|
|
124
124
|
style={{ backgroundColor: getRandomColor(str) }}
|
|
125
125
|
>
|
|
126
126
|
{str[0]}
|