Skip to content

Commit

Permalink
Update types for name.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcorner committed Apr 3, 2020
1 parent 0a611dd commit e554019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/pages/components/text-fields/FormattedInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function NumberFormatCustom(props) {
NumberFormatCustom.propTypes = {
inputRef: PropTypes.func.isRequired,
onChange: PropTypes.func.isRequired,
name: PropTypes.string.isRequired,
};

export default function FormattedInputs() {
Expand Down
3 changes: 2 additions & 1 deletion docs/src/pages/components/text-fields/FormattedInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function TextMaskCustom(props: TextMaskCustomProps) {

interface NumberFormatCustomProps {
inputRef: (instance: NumberFormat | null) => void;
onChange: (event: { target: { value: string } }) => void;
onChange: (event: { target: { name: string; value: string } }) => void;
name: string;
}

function NumberFormatCustom(props: NumberFormatCustomProps) {
Expand Down

0 comments on commit e554019

Please sign in to comment.