fix(dependencies): Update react-day-picker to version 9.11.1 for improved functionality

fix(forms): Adjust endMonth in AnnuncioEditForm to 2050 for better date handling

refactor(forms): Remove date validation in ProfileFormAnagrafica for simplified logic

fix(user-view): Update DialogContent class for consistent styling in NewServizioModal
This commit is contained in:
Marco Pedone 2025-10-30 19:39:40 +01:00
parent 9e495caf29
commit 97503b34e5
5 changed files with 7 additions and 9 deletions

View file

@ -64,7 +64,7 @@
"radix-ui": "^1.4.2",
"react": "^19.1.0",
"react-colorful": "^5.6.1",
"react-day-picker": "^9.8.1",
"react-day-picker": "^9.11.1",
"react-dom": "^19.1.1",
"react-email": "^4.2.8",
"react-hook-form": "^7.62.0",
@ -15562,9 +15562,9 @@
}
},
"node_modules/react-day-picker": {
"version": "9.9.0",
"resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.9.0.tgz",
"integrity": "sha512-NtkJbuX6cl/VaGNb3sVVhmMA6LSMnL5G3xNL+61IyoZj0mUZFWTg4hmj7PHjIQ8MXN9dHWhUHFoJWG6y60DKSg==",
"version": "9.11.1",
"resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.11.1.tgz",
"integrity": "sha512-l3ub6o8NlchqIjPKrRFUCkTUEq6KwemQlfv3XZzzwpUeGwmDJ+0u0Upmt38hJyd7D/vn2dQoOoLV/qAp0o3uUw==",
"license": "MIT",
"dependencies": {
"@date-fns/tz": "^1.4.1",

View file

@ -74,7 +74,7 @@
"radix-ui": "^1.4.2",
"react": "^19.1.0",
"react-colorful": "^5.6.1",
"react-day-picker": "^9.8.1",
"react-day-picker": "^9.11.1",
"react-dom": "^19.1.1",
"react-email": "^4.2.8",
"react-hook-form": "^7.62.0",

View file

@ -1093,6 +1093,7 @@ export const AnnuncioEditForm = ({ data }: { data: AnnunciWithImages }) => {
autoFocus
captionLayout="dropdown"
defaultMonth={field.value || undefined}
endMonth={new Date(2050, 12)}
locale={it}
mode="single"
onSelect={field.onChange}

View file

@ -272,9 +272,6 @@ export const ProfileFormAnagrafica = ({
autoFocus
captionLayout="dropdown"
defaultMonth={field.value}
disabled={(date) =>
date > new Date() || date < new Date("1900-01-01")
}
endMonth={new Date()}
locale={DatePickerLocale}
mode="single"

View file

@ -152,7 +152,7 @@ const NewServizioModal = ({
Nuovo Servizio
</Button>
</DialogTrigger>
<DialogContent className="max-h-[80%] max-w-5xl overflow-auto p-4">
<DialogContent className="max-h-[80%] overflow-auto p-4 sm:max-w-5xl">
<DialogHeader>
<DialogTitle>Creazione Servizio</DialogTitle>
<DialogDescription className="sr-only">desc</DialogDescription>