mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix type any warning on lint
This commit is contained in:
parent
d62039fba1
commit
bbd11bb0b7
1 changed files with 2 additions and 2 deletions
|
@ -9,13 +9,13 @@ export interface SelectProps
|
||||||
> {
|
> {
|
||||||
theme?: NonNullable<RecipeVariants<typeof styles.select>>["theme"];
|
theme?: NonNullable<RecipeVariants<typeof styles.select>>["theme"];
|
||||||
label?: string;
|
label?: string;
|
||||||
options?: { key: any; value: any; label: string }[];
|
options?: { key: string; value: string; label: string }[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Select({
|
export function Select({
|
||||||
value,
|
value,
|
||||||
label,
|
label,
|
||||||
options = [{ key: value, value: value, label: "-" }],
|
options = [{ key: "-", value: value?.toString() || "-", label: "-" }],
|
||||||
theme = "primary",
|
theme = "primary",
|
||||||
onChange,
|
onChange,
|
||||||
}: SelectProps) {
|
}: SelectProps) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue