Skip to content

Commit 38c0ed2

Browse files
committed
lint
1 parent 80409f7 commit 38c0ed2

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

packages/@react-aria/calendar/src/useCalendarGrid.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,14 @@
1010
* governing permissions and limitations under the License.
1111
*/
1212

13-
import {CalendarDate, getWeekStart, startOfWeek, today} from '@internationalized/date';
13+
import {CalendarDate, startOfWeek, today} from '@internationalized/date';
1414
import {CalendarState, RangeCalendarState} from '@react-stately/calendar';
1515
import {DOMAttributes} from '@react-types/shared';
1616
import {hookData, useVisibleRangeDescription} from './utils';
1717
import {KeyboardEvent, useMemo} from 'react';
1818
import {mergeProps, useLabels} from '@react-aria/utils';
1919
import {useDateFormatter, useLocale} from '@react-aria/i18n';
2020

21-
const DAY_MAP = {
22-
sun: 0,
23-
mon: 1,
24-
tue: 2,
25-
wed: 3,
26-
thu: 4,
27-
fri: 5,
28-
sat: 6
29-
};
30-
3121
export interface AriaCalendarGridProps {
3222
/**
3323
* The first date displayed in the calendar grid.

packages/@react-stately/calendar/src/useCalendarState.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
endOfMonth,
2020
endOfWeek,
2121
getDayOfWeek,
22-
getWeekStart,
2322
GregorianCalendar,
2423
isSameDay,
2524
startOfMonth,
@@ -34,16 +33,6 @@ import {useControlledState} from '@react-stately/utils';
3433
import {useMemo, useState} from 'react';
3534
import {ValidationState} from '@react-types/shared';
3635

37-
const DAY_MAP = {
38-
sun: 0,
39-
mon: 1,
40-
tue: 2,
41-
wed: 3,
42-
thu: 4,
43-
fri: 5,
44-
sat: 6
45-
};
46-
4736
export interface CalendarStateOptions<T extends DateValue = DateValue> extends CalendarProps<T> {
4837
/** The locale to display and edit the value according to. */
4938
locale: string,

0 commit comments

Comments
 (0)