fix: undefined color case
This commit is contained in:
@@ -33,7 +33,7 @@ export function Button({
|
|||||||
const Icon = icon;
|
const Icon = icon;
|
||||||
const isIconOnly = !children && !!icon;
|
const isIconOnly = !children && !!icon;
|
||||||
const colorHex = getThemeColorHexByName(color);
|
const colorHex = getThemeColorHexByName(color);
|
||||||
const colorRgb = getThemeColorRgbByName(color).join(' ');
|
const colorRgb = getThemeColorRgbByName(color)?.join(' ');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user