fix: update fallback color in getIntentColor function to use theme default

This commit is contained in:
Firman Ramdhani
2026-07-15 18:09:37 +07:00
parent 43f9d3d491
commit 03eb4a803b
@@ -15,9 +15,9 @@ export const getIntentColor = (intent?: ActionIntent): string | undefined => {
case 'success':
return 'teal';
case 'primary':
return undefined; // Default primary color
return 'brand'; // Default primary color
default:
return 'default'; // Fallback to theme default color if no intent is specified
return 'var(--mantine-color-text)'; // Fallback to theme default color if no intent is specified
}
};