fix: missing theme on local wishlists in dashboard page
This commit is contained in:
@@ -44,8 +44,13 @@ export function getTheme(themeName?: string | null): Theme {
|
||||
|
||||
/**
|
||||
* Get color from a CSS color string or class
|
||||
* For now, we'll use currentColor which inherits from the parent
|
||||
* Returns the provided color or a default primary color
|
||||
*/
|
||||
export function getThemeColor(color?: string | null): string {
|
||||
return color || 'currentColor';
|
||||
// Use the provided color, or default to a visible color
|
||||
if (color && color !== 'null' && color !== '') {
|
||||
return color;
|
||||
}
|
||||
// Default to a blue color (can't use CSS variables in SVG fill)
|
||||
return '#3b82f6';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user