Skip to content

Add data validation for checkout/return dates #147

@Frama-99

Description

@Frama-99

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions