Typescript

This commit is contained in:
Mitchell McCaffrey
2021-07-17 12:48:04 +10:00
parent e48d19a817
commit fecf8090ea
23 changed files with 556 additions and 254 deletions

View File

@@ -3,7 +3,7 @@ import Creatable from "react-select/creatable";
import { useThemeUI } from "theme-ui";
type SelectProps = {
creatable: boolean;
creatable?: boolean;
} & Props;
function Select({ creatable, ...props }: SelectProps) {
@@ -76,4 +76,8 @@ function Select({ creatable, ...props }: SelectProps) {
);
}
Select.defaultProps = {
creatable: false,
};
export default Select;