@transferwise/components 0.0.0-experimental-adcaf57 → 0.0.0-experimental-d0bd4b4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7571,27 +7571,45 @@ class WithDisplayFormat extends Component {
7571
7571
  }, 0);
7572
7572
  };
7573
7573
  render() {
7574
- return this.props.render({
7575
- value: this.state.value,
7576
- type: this.props.type,
7577
- inputMode: this.props.inputMode,
7578
- className: this.props.className,
7579
- id: this.props.id,
7580
- name: this.props.name,
7581
- placeholder: this.props.placeholder,
7582
- readOnly: this.props.readOnly,
7583
- required: this.props.required,
7584
- minLength: this.props.minLength,
7585
- maxLength: this.props.maxLength,
7586
- disabled: this.props.disabled,
7587
- autoComplete: this.props.autoComplete,
7574
+ const {
7575
+ type,
7576
+ inputMode,
7577
+ className,
7578
+ id,
7579
+ name,
7580
+ placeholder,
7581
+ readOnly,
7582
+ required,
7583
+ minLength,
7584
+ maxLength,
7585
+ disabled,
7586
+ autoComplete
7587
+ } = this.props;
7588
+ const {
7589
+ value
7590
+ } = this.state;
7591
+ const renderProps = {
7592
+ type,
7593
+ inputMode,
7594
+ className,
7595
+ id,
7596
+ name,
7597
+ placeholder,
7598
+ readOnly,
7599
+ required,
7600
+ minLength,
7601
+ maxLength,
7602
+ disabled,
7603
+ autoComplete,
7604
+ value,
7588
7605
  onFocus: this.handleOnFocus,
7589
7606
  onBlur: this.handleOnBlur,
7590
7607
  onPaste: this.handleOnPaste,
7591
7608
  onKeyDown: this.handleOnKeyDown,
7592
7609
  onChange: this.handleOnChange,
7593
7610
  onCut: this.handleOnCut
7594
- });
7611
+ };
7612
+ return this.props.render(renderProps);
7595
7613
  }
7596
7614
  }
7597
7615