Skip to content

Commit

Permalink
Add defaultMonth
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Aug 12, 2024
1 parent 517577b commit 9b7fc20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/(dashboard)/patients/PatientForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const PatientForm = ({
mode="single"
selected={field.value}
onSelect={(date) => field.onChange(date)}

Check warning on line 98 in app/(dashboard)/patients/PatientForm.tsx

View check run for this annotation

Codecov / codecov/patch

app/(dashboard)/patients/PatientForm.tsx#L98

Added line #L98 was not covered by tests
defaultMonth={field.value}
toYear={new Date().getFullYear()}
/>
)}
Expand Down
1 change: 1 addition & 0 deletions app/(dashboard)/users/UserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const UserForm = ({
mode="single"
selected={field.value}
onSelect={(date) => field.onChange(date)}

Check warning on line 109 in app/(dashboard)/users/UserForm.tsx

View check run for this annotation

Codecov / codecov/patch

app/(dashboard)/users/UserForm.tsx#L109

Added line #L109 was not covered by tests
defaultMonth={field.value}
toYear={new Date().getFullYear()}
/>
)}
Expand Down

0 comments on commit 9b7fc20

Please sign in to comment.