🚨(react) fix type and sass warning after deps upgrade
- Do not use deprecated `map-get` Sass method - Fix type issue in `DatePicker`
This commit is contained in:
committed by
Jean-Baptiste PENRATH
parent
cf6cf55bae
commit
b1850c029a
@@ -1,6 +1,7 @@
|
||||
import React, { RefAttributes, useMemo, useRef, useState } from "react";
|
||||
import {
|
||||
CalendarDate,
|
||||
CalendarIdentifier,
|
||||
createCalendar,
|
||||
DateValue,
|
||||
GregorianCalendar,
|
||||
@@ -132,7 +133,8 @@ const CalendarAux = ({
|
||||
|
||||
const yearItems: Array<Option> = useMemo(() => {
|
||||
const calendarCurrentUser = createCalendar(
|
||||
new Intl.DateTimeFormat().resolvedOptions().calendar,
|
||||
new Intl.DateTimeFormat().resolvedOptions()
|
||||
.calendar as CalendarIdentifier,
|
||||
);
|
||||
const minDate = toCalendar(
|
||||
new CalendarDate(new GregorianCalendar(), minYear, 1, 1),
|
||||
|
||||
Reference in New Issue
Block a user