diff --git a/src/components/atoms/Form/Input.tsx b/src/components/atoms/Form/Input.tsx index 6ed0688..bb2dd28 100644 --- a/src/components/atoms/Form/Input.tsx +++ b/src/components/atoms/Form/Input.tsx @@ -47,47 +47,46 @@ export default class Input extends PureComponent { this.setState({ isFocused: !this.state.isFocused }) } - public InputComponent = ({ ...props }) => { - if (props.type === 'select') { + public InputComponent = () => { + const { type, options, group, name } = this.props + + if (type === 'select') { return (
- - {props.options && - props.options.map( - (option: string, index: number) => ( - - ) - )} + {options && + options.map((option: string, index: number) => ( + + ))}
) - } else if (props.type === 'textarea') { + } else if (type === 'textarea') { return (
-