import React from 'react';
import PropTypes from 'prop-types';


export default class SelectItem extends React.Component {
    static componentName = 'SelectItem';

    static propTypes = {
        id: PropTypes.oneOfType([ // eslint-disable-line react/no-unused-prop-types
            PropTypes.string,
            PropTypes.number
        ]),
        name: PropTypes.string, // eslint-disable-line react/no-unused-prop-types
        disabled: PropTypes.bool, // eslint-disable-line react/no-unused-prop-types
        className: PropTypes.string, // eslint-disable-line react/no-unused-prop-types
        children: PropTypes.node,
    };

    static defaultProps = {
        id: null,
        name: null,
        disabled: null,
        className: null,
        children: null,
    };

    render() {
        return(
            <div className="selectlist__selectitem">
                {this.props.children}
            </div>
        );
    }
}

import React from 'react';
import PropTypes from 'prop-types';


export default class SelectItem extends React.Component {
    static componentName = 'SelectItem';

    static propTypes = {
        id: PropTypes.oneOfType([ // eslint-disable-line react/no-unused-prop-types
            PropTypes.string,
            PropTypes.number
        ]),
        name: PropTypes.oneOfType([ // eslint-disable-line react/no-unused-prop-types
            PropTypes.string,
            PropTypes.node,
            PropTypes.arrayOf(PropTypes.node),
        ]),
        disabled: PropTypes.bool, // eslint-disable-line react/no-unused-prop-types
        className: PropTypes.string, // eslint-disable-line react/no-unused-prop-types
        children: PropTypes.node,
    };

    static defaultProps = {
        id: null,
        name: null,
        disabled: null,
        className: null,
        children: null,
    };

    render() {
        return(
            <div className="selectlist__selectitem">
                {this.props.children}
            </div>
        );
    }
}

Add possible propTypes to name-prop
Add possible propTypes to name-prop
