Skip to content

Commit bd26eaf

Browse files
committed
Damn you linter
1 parent a64f159 commit bd26eaf

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/scripts/Select.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,10 @@ Select.propTypes = {
5858

5959
Select.isFormElement = true;
6060

61-
export class Option extends Component {
62-
render() {
63-
const { label, children, ...pprops } = this.props;
64-
return (<option { ...pprops }>{ label || children }</option>);
65-
}
66-
};
61+
export const Option = (props) => {
62+
const { label, children, ...pprops } = this.props;
63+
return (<option { ...pprops }>{ label || children }</option>);
64+
}
6765

6866
Option.propTypes = {
6967
children: PropTypes.node,

0 commit comments

Comments
 (0)