Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Xiao authored Jul 15, 2019
1 parent 9c69175 commit 9f5bf41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ import 'react-minimal-datetime-range/lib/react-minimal-datetime-range.min.css';
locale={`en-us`} // default is en-us
show={false} // default is false
placeholder={['Start Time', 'End Time']}
defaultDates={[year + '-' + month + '-' + date, year + '-' + month + '-' + date]} // ['YYYY-MM-DD', 'YYYY-MM-DD']
defaultTimes={[hour + ':' + minute, hour + ':' + minute]} // ['hh:mm', 'hh:mm']
defaultDates={[`${yearS}-${monthS}-${dateS}`, `${yearE}-${monthE}-${dateE}`]} // ['YYYY-MM-DD', 'YYYY-MM-DD']
defaultTimes={[`${hourS}:${minuteS}`, `${hourE}:${minuteE}`]} // ['hh:mm', 'hh:mm']
onConfirm={res => console.log(res)}
onClose={() => console.log('closed')}
style={{ width: '300px', margin: '0 auto' }}
Expand Down

0 comments on commit 9f5bf41

Please sign in to comment.