Fix some any types

This commit is contained in:
Isaac Wise
2024-07-25 18:58:52 -05:00
parent e79b98d3b0
commit 0b8a9b4310
16 changed files with 49 additions and 55 deletions
@@ -4,17 +4,17 @@ import { useEffect, useState } from "react";
import { styles } from "./styles";
import { Options } from "./types";
import CreatableSelect from "react-select/creatable";
import Select from "react-select";
import Select, { ActionMeta } from "react-select";
type Props = {
onChange: any;
onChange: (newValue: unknown, actionMeta: ActionMeta<unknown>) => void;
showDefaultValue?: boolean;
defaultValue?:
| {
label: string;
value?: number;
}
| undefined;
| {
label: string;
value?: number;
}
| undefined;
creatable?: boolean;
};
@@ -107,7 +107,7 @@ export default function CollectionSelection({
components={{
Option: customOption,
}}
// menuPosition="fixed"
// menuPosition="fixed"
/>
);
} else {
@@ -123,7 +123,7 @@ export default function CollectionSelection({
components={{
Option: customOption,
}}
// menuPosition="fixed"
// menuPosition="fixed"
/>
);
}
+2 -1
View File
@@ -3,9 +3,10 @@ import { useEffect, useState } from "react";
import CreatableSelect from "react-select/creatable";
import { styles } from "./styles";
import { Options } from "./types";
import { ActionMeta } from "react-select";
type Props = {
onChange: any;
onChange: (newValue: unknown, actionMeta: ActionMeta<unknown>) => void;
defaultValue?: {
value: number;
label: string;