fix type any warning on lint

This commit is contained in:
piradata 2024-05-30 02:53:49 -03:00
parent d62039fba1
commit bbd11bb0b7

View file

@ -9,13 +9,13 @@ export interface SelectProps
> {
theme?: NonNullable<RecipeVariants<typeof styles.select>>["theme"];
label?: string;
options?: { key: any; value: any; label: string }[];
options?: { key: string; value: string; label: string }[];
}
export function Select({
value,
label,
options = [{ key: value, value: value, label: "-" }],
options = [{ key: "-", value: value?.toString() || "-", label: "-" }],
theme = "primary",
onChange,
}: SelectProps) {