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
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
},
"peerDependencies": {
"@gravity-ui/uikit": "^7.21.0",
"@gravity-ui/date-utils": "^2.5.3",
"@gravity-ui/date-utils": "^2.6.0",
"@types/react": ">=17.0.0",
"react": ">=17.0.0",
"react-dom": ">=17.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/components/DateField/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import {dateTime, expandFormat} from '@gravity-ui/date-utils';
import type {DateTime} from '@gravity-ui/date-utils';
import dayjs from '@gravity-ui/date-utils/build/dayjs/index.js';
import {dayjs} from '@gravity-ui/date-utils/build/dayjs/index.js';
import type {LongDateFormat} from '@gravity-ui/date-utils/build/settings/types';
import {useLang} from '@gravity-ui/uikit';

Expand Down Expand Up @@ -711,8 +711,8 @@
if (!isEditableSection(s)) {
continue;
}
const dateUnitIndex = dateUnits.indexOf(s.type as any);

Check warning on line 714 in src/components/DateField/utils.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Unexpected any. Specify a different type
const timeUnitIndex = timeUnits.indexOf(s.type as any);

Check warning on line 715 in src/components/DateField/utils.ts

View workflow job for this annotation

GitHub Actions / Verify Files

Unexpected any. Specify a different type
availableUnits[s.type] = true;
hasDate ||= dateUnitIndex !== -1;
hasTime ||= timeUnitIndex !== -1;
Expand Down
Loading