fix: missing theme on local wishlists in dashboard page

This commit is contained in:
rasmusq
2025-11-28 13:03:13 +01:00
parent eb7ccdf7a2
commit d165e5992a
4 changed files with 115 additions and 19 deletions

View File

@@ -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';
}