@@ -47,7 +55,7 @@ export const SelectMenu = (props) => {
);
};
-export const SelectContainer = (props) => {
+export const SelectContainer = (props: ContainerProps) => {
return (
@@ -55,7 +63,7 @@ export const SelectContainer = (props) => {
);
};
-export const SelectInput = (props) => {
+export const SelectInput = (props: InputProps) => {
return (
diff --git a/src/Select/SelectOption.tsx b/src/Select/SelectOption.tsx
index 83087e149..0c8ed238d 100644
--- a/src/Select/SelectOption.tsx
+++ b/src/Select/SelectOption.tsx
@@ -6,13 +6,13 @@ import { subPx } from "../utils";
import { ComponentSize, useComponentSize } from "../NDSProvider/ComponentSizeContext";
import { stylesForSize } from "./customReactSelectStyles";
-type SelectOptionProps = {
+type StyledOptionProps = {
isSelected: boolean;
isFocused: boolean;
size: ComponentSize;
};
-export const StyledOption = styled.div(
+export const StyledOption = styled.div(
typography,
({ isSelected, isFocused, theme }) => ({
"&:last-child": {
@@ -51,11 +51,11 @@ export const StyledOption = styled.div(
)
);
-interface CustomOptionProps extends OptionProps {
+interface SelectOptionProps extends OptionProps {
size?: ComponentSize;
}
-export function SelectOption(props: CustomOptionProps) {
+export function SelectOption(props: SelectOptionProps) {
const size = useComponentSize(props.size);
return (