Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PickerInput/Selector/hooks/useInputProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default function useInputProps<DateType extends object = any>(
// ======================== Input =========================
const getInputProps = (index?: number): InputProps => {
function getProp<T>(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 });
Expand Down
2 changes: 2 additions & 0 deletions src/locale/it_IT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;