Continuing updating the reformatting of propTypes and set redux, intl functions to end of component

• Removing:
- the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
mgabdev
2020-08-17 19:57:35 -05:00
parent 46a0cbca7d
commit ddca693cfc
101 changed files with 2053 additions and 2140 deletions

View File

@@ -10,16 +10,7 @@ import Icon from './icon'
* @param {object} props.options - options for selection
* @param {string} [props.value] - value to set selected
*/
export default class Select extends ImmutablePureComponent {
static propTypes = {
onChange: PropTypes.func.isRequired,
options: PropTypes.oneOf([
ImmutablePropTypes.map,
PropTypes.object,
]).isRequired,
value: PropTypes.string,
}
class Select extends ImmutablePureComponent {
updateOnProps = [
'options',
@@ -58,3 +49,14 @@ export default class Select extends ImmutablePureComponent {
}
}
Select.propTypes = {
onChange: PropTypes.func.isRequired,
options: PropTypes.oneOf([
ImmutablePropTypes.map,
PropTypes.object,
]).isRequired,
value: PropTypes.string,
}
export default Select