reusejs / all

1 stars 0 forks source link

Date Picker Library #27

Open Sowmyareddy22 opened 3 years ago

Sowmyareddy22 commented 3 years ago

https://codesandbox.io/s/react-date-picker-hmd5h

rjvim commented 3 years ago

@Sowmyareddy22 Faizan is working on this for LRM project, we can make this as component at same time I guess.

Sowmyareddy22 commented 3 years ago

@rjvim Ya sure.

faizanmohiuddin482 commented 3 years ago

@Sowmyareddy22 @rjvim
Here's my codesandbox implementation for airbnb's react-dates datepicker component. https://codesandbox.io/s/react-dates-for-lrm-bsmi7

Sowmyareddy22 commented 3 years ago

@faizanmohiuddin482 Are you done with this component?

faizanmohiuddin482 commented 3 years ago

@faizanmohiuddin482 Are you done with this component?

I'm currently using this in LRM.

Sowmyareddy22 commented 3 years ago

@rjvim Please check this whenever you are free. If it's fine then we can make it a package and publish it. https://codesandbox.io/s/react-dates-for-lrm-bsmi7.

rjvim commented 3 years ago

@Sowmyareddy22 There is more requirement which we need to cover.

  1. Number of Years as Prop
  2. Minimum Date (Dates before that should be disabled)
  3. Maximum Date (Dates after that should be disabled)
faizanmohiuddin482 commented 3 years ago

@Sowmyareddy22 There's a storybook for airbnb react-dates component. Here's the link http://airbnb.io/react-dates/?path=/story/sdp-input-props--default

Sowmyareddy22 commented 3 years ago

@rjvim Sure will look into that.

Sowmyareddy22 commented 3 years ago

@rjvim I have made changes in the date component as per the requirement. We can pass no. of years, minDate and maxDate as props. Also able to disable the dates based on the minDate and maxDate. Please check this. https://codesandbox.io/s/react-dates-for-lrm-bsmi7