Skip to content

Commit 398d0ba

Browse files
committed
Clean up proptypes. Have demo link to src.
1 parent 64ddc86 commit 398d0ba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

demo/Example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import NumberFormatInput from '../lib';
1+
import NumberFormatInput from '../src';
22
import React, {Component, PropTypes} from 'react';
33

44
const simpleFormat = new Intl.NumberFormat('en-US');

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,21 @@ NumberFormatInput.PropTypes = {
6565
};
6666

6767
NumberFormatInput.defaultProps = {
68-
value: 0,
68+
allowNullValue: false,
69+
maxlength: undefined,
6970
numberFormat: new Intl.NumberFormat('en-US', {}),
7071
onChange: () => {},
71-
maxlength: undefined,
72-
allowNull: false,
72+
value: 0,
7373
};
7474

7575
NumberFormatInput.propTypes = {
76+
allowNullValue: PropTypes.bool,
7677
maxlength: PropTypes.number,
77-
value: PropTypes.number,
78-
onChange: PropTypes.func,
79-
8078
numberFormat: PropTypes.shape({
8179
format: PropTypes.func.isRequired,
8280
resolvedOptions: PropTypes.func.isRequired,
8381
}),
82+
onChange: PropTypes.func,
83+
value: PropTypes.number,
8484
};
8585

0 commit comments

Comments
 (0)