From 62f6d94a948499133101d2714d74fec022606d3d Mon Sep 17 00:00:00 2001 From: liamli-0822 Date: Wed, 5 Mar 2025 10:52:24 +0800 Subject: [PATCH 1/2] feat: Add shortWeekDays and shortMonths to it_IT.ts close: #898 --- src/locale/it_IT.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/locale/it_IT.ts b/src/locale/it_IT.ts index 99279dc4b..bd137a47e 100644 --- a/src/locale/it_IT.ts +++ b/src/locale/it_IT.ts @@ -30,6 +30,8 @@ const locale: Locale = { nextDecade: 'Prossimo decennio', previousCentury: 'Secolo precedente', nextCentury: 'Prossimo secolo', + shortWeekDays: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'], + shortMonths: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'], }; export default locale; From d03f58b5fcf1ca2d74f5297d69490d52aa6a752a Mon Sep 17 00:00:00 2001 From: liamli-0822 Date: Thu, 6 Mar 2025 10:20:57 +0800 Subject: [PATCH 2/2] fix: type error in useInputProps getProp function --- src/PickerInput/Selector/hooks/useInputProps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PickerInput/Selector/hooks/useInputProps.ts b/src/PickerInput/Selector/hooks/useInputProps.ts index bfc4e0004..251777982 100644 --- a/src/PickerInput/Selector/hooks/useInputProps.ts +++ b/src/PickerInput/Selector/hooks/useInputProps.ts @@ -123,7 +123,7 @@ export default function useInputProps( // ======================== Input ========================= const getInputProps = (index?: number): InputProps => { function getProp(propValue: T | T[]): T { - return index !== undefined ? propValue[index] : propValue; + return index !== undefined ? propValue[index] : (propValue as T); } const pickedAttrs = pickAttrs(props, { aria: true, data: true });