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

fix(ui): change `<input type="date"> to Datepicker #464

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devsargam
Copy link

resolves #428

Changelog:

  • Changes all inputs with type='date' to shadcn's DatePicker

ScreenRecording:

Kapture.2024-07-24.at.16.28.06.mp4

Copy link

github-actions bot commented Jul 24, 2024

Thank you for following the naming conventions for pull request titles! 🙏

@@ -21,11 +22,11 @@ import { useForm } from "react-hook-form";
import { z } from "zod";

const formSchema = z.object({
boardApprovalDate: z.string().date(),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to change the zod schemas form string() to date() because the component expected so. Would love to hear about that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should be fine, you probably can coerce as well.

@devsargam devsargam changed the title ui: change `<input type="date"> to Datepicker fix(ui): change `<input type="date"> to Datepicker Jul 24, 2024
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.

Replace <Input type="date"> with shadcn/ui datepicker
2 participants