Run Prettier's automated formatting over the codebase.

This commit is contained in:
gbuomprisco
2024-11-08 14:35:30 +08:00
parent c5d7464e61
commit 3fad846821
13 changed files with 43 additions and 34 deletions

View File

@@ -9,13 +9,16 @@ import { cn } from '../lib/utils';
// Format: { THEME_NAME: CSS_SELECTOR }
const THEMES = { light: '', dark: '.dark' } as const;
export type ChartConfig = Record<string, {
export type ChartConfig = Record<
string,
{
label?: React.ReactNode;
icon?: React.ComponentType;
} & (
| { color?: string; theme?: never }
| { color?: never; theme: Record<keyof typeof THEMES, string> }
)>;
)
>;
type ChartContextProps = {
config: ChartConfig;