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:
parent
9e495caf29
commit
97503b34e5
5 changed files with 7 additions and 9 deletions
8
apps/infoalloggi/package-lock.json
generated
8
apps/infoalloggi/package-lock.json
generated
|
|
@ -64,7 +64,7 @@
|
||||||
"radix-ui": "^1.4.2",
|
"radix-ui": "^1.4.2",
|
||||||
"react": "^19.1.0",
|
"react": "^19.1.0",
|
||||||
"react-colorful": "^5.6.1",
|
"react-colorful": "^5.6.1",
|
||||||
"react-day-picker": "^9.8.1",
|
"react-day-picker": "^9.11.1",
|
||||||
"react-dom": "^19.1.1",
|
"react-dom": "^19.1.1",
|
||||||
"react-email": "^4.2.8",
|
"react-email": "^4.2.8",
|
||||||
"react-hook-form": "^7.62.0",
|
"react-hook-form": "^7.62.0",
|
||||||
|
|
@ -15562,9 +15562,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/react-day-picker": {
|
"node_modules/react-day-picker": {
|
||||||
"version": "9.9.0",
|
"version": "9.11.1",
|
||||||
"resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.9.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.11.1.tgz",
|
||||||
"integrity": "sha512-NtkJbuX6cl/VaGNb3sVVhmMA6LSMnL5G3xNL+61IyoZj0mUZFWTg4hmj7PHjIQ8MXN9dHWhUHFoJWG6y60DKSg==",
|
"integrity": "sha512-l3ub6o8NlchqIjPKrRFUCkTUEq6KwemQlfv3XZzzwpUeGwmDJ+0u0Upmt38hJyd7D/vn2dQoOoLV/qAp0o3uUw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@date-fns/tz": "^1.4.1",
|
"@date-fns/tz": "^1.4.1",
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
"radix-ui": "^1.4.2",
|
"radix-ui": "^1.4.2",
|
||||||
"react": "^19.1.0",
|
"react": "^19.1.0",
|
||||||
"react-colorful": "^5.6.1",
|
"react-colorful": "^5.6.1",
|
||||||
"react-day-picker": "^9.8.1",
|
"react-day-picker": "^9.11.1",
|
||||||
"react-dom": "^19.1.1",
|
"react-dom": "^19.1.1",
|
||||||
"react-email": "^4.2.8",
|
"react-email": "^4.2.8",
|
||||||
"react-hook-form": "^7.62.0",
|
"react-hook-form": "^7.62.0",
|
||||||
|
|
|
||||||
|
|
@ -1093,6 +1093,7 @@ export const AnnuncioEditForm = ({ data }: { data: AnnunciWithImages }) => {
|
||||||
autoFocus
|
autoFocus
|
||||||
captionLayout="dropdown"
|
captionLayout="dropdown"
|
||||||
defaultMonth={field.value || undefined}
|
defaultMonth={field.value || undefined}
|
||||||
|
endMonth={new Date(2050, 12)}
|
||||||
locale={it}
|
locale={it}
|
||||||
mode="single"
|
mode="single"
|
||||||
onSelect={field.onChange}
|
onSelect={field.onChange}
|
||||||
|
|
|
||||||
|
|
@ -272,9 +272,6 @@ export const ProfileFormAnagrafica = ({
|
||||||
autoFocus
|
autoFocus
|
||||||
captionLayout="dropdown"
|
captionLayout="dropdown"
|
||||||
defaultMonth={field.value}
|
defaultMonth={field.value}
|
||||||
disabled={(date) =>
|
|
||||||
date > new Date() || date < new Date("1900-01-01")
|
|
||||||
}
|
|
||||||
endMonth={new Date()}
|
endMonth={new Date()}
|
||||||
locale={DatePickerLocale}
|
locale={DatePickerLocale}
|
||||||
mode="single"
|
mode="single"
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ const NewServizioModal = ({
|
||||||
Nuovo Servizio
|
Nuovo Servizio
|
||||||
</Button>
|
</Button>
|
||||||
</DialogTrigger>
|
</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>
|
<DialogHeader>
|
||||||
<DialogTitle>Creazione Servizio</DialogTitle>
|
<DialogTitle>Creazione Servizio</DialogTitle>
|
||||||
<DialogDescription className="sr-only">desc</DialogDescription>
|
<DialogDescription className="sr-only">desc</DialogDescription>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue