Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add RangeDatePicker component #14

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

ainunns
Copy link
Owner

@ainunns ainunns commented Nov 27, 2024

Description & Technical Solution

This pull request introduces the integration of react-datepicker into the project, including necessary dependencies, styling, and a new RangeDatePicker component. The key changes are summarized below:

Dependency Additions:

  • Added react-datepicker version 7.5.0 to package.json and updated pnpm-lock.yaml to include the new dependency and its peer dependencies. [1] [2] [3] [4]

Styling:

  • Added custom CSS styles for react-datepicker in resources/css/app.css to ensure consistent appearance with the rest of the application.

New Component:

  • Created a new RangeDatePicker component in resources/js/Components/Forms/RangeDatepicker.tsx that utilizes react-datepicker for selecting date ranges, complete with form validation and error handling.

These changes collectively enhance the application's date selection functionality by integrating a robust date picker component with custom styling and validation support.

Checklist

  • I have commented on my code, particularly in hard-to-understand areas.
  • Already rebased against the main branch.

Screenshots

Edit.Product.-.Furnixy.mp4

@ainunns ainunns requested a review from nisrinasalm November 27, 2024 16:36
@ainunns ainunns self-assigned this Nov 27, 2024
@ainunns ainunns linked an issue Nov 27, 2024 that may be closed by this pull request
@ainunns ainunns merged commit 7f2b4cf into main Nov 27, 2024
2 checks passed
@ainunns ainunns deleted the is11-datepicker_component branch November 27, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datepicker component
2 participants