Typescript

This commit is contained in:
Mitchell McCaffrey
2021-07-16 18:59:29 +10:00
parent 2ce9d2dd08
commit a1fb67df7b
22 changed files with 314 additions and 203 deletions

View File

@@ -9,7 +9,7 @@ type SelectProps = {
function Select({ creatable, ...props }: SelectProps) {
const { theme } = useThemeUI();
const Component = creatable ? Creatable : (ReactSelect as any);
const Component: any = creatable ? Creatable : ReactSelect;
return (
<Component