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

Add data validation for checkout/return dates #147

Open
Frama-99 opened this issue Dec 24, 2021 · 0 comments
Open

Add data validation for checkout/return dates #147

Frama-99 opened this issue Dec 24, 2021 · 0 comments

Comments

@Frama-99
Copy link
Collaborator

Frama-99 commented Dec 24, 2021

Date requirements:

  • Checkout time must be 2 days after the current time
  • Return time must be within 2 days of checkout time
  • Return time must be after the checkout time

Material UI's datetime picker has built in data validation: https://mui.com/components/date-time-picker/. To display a helpful error message we pass props into the TextField: https://mui.com/components/text-fields/

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

No branches or pull requests

1 participant