Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. handleDateChange = (date): void => {
  2. this.setState({
  3. date: date,
  4. }, () => this.props.getExchangeRates({
  5. Filter: {
  6. Date: FormatDateTimeToInput(date)
  7. }
  8. }));
  9. }
  10.  
  11.  
  12. <DatePicker
  13. disabled={isExchange ? false : true}
  14. id={'DATE'}
  15. date={date}
  16. minDate={moment().subtract(1, 'months')}
  17. maxDate={moment().add(1, 'day')}
  18. onDateChange={this.handleDateChange}
  19. />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement