Typescript
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user