Skip to content

Commit 5d1a6af

Browse files
committed
chore: fix eslint warnings
1 parent 2426abd commit 5d1a6af

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

packages/react/src/AutoComplete/useAutoCompleteCreation.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,8 @@ export function useAutoCompleteCreation({
150150
const getPendingCreateList = useCallback(
151151
(text: string): string[] => {
152152
const processed = processBulkCreate(text);
153-
const optionNames = new Set(
154-
options.map((o) => o.name.toLowerCase()),
155-
);
156-
return processed.filter(
157-
(part) => !optionNames.has(part.toLowerCase()),
158-
);
153+
const optionNames = new Set(options.map((o) => o.name.toLowerCase()));
154+
return processed.filter((part) => !optionNames.has(part.toLowerCase()));
159155
},
160156
[options, processBulkCreate],
161157
);
@@ -319,6 +315,7 @@ export function useAutoCompleteCreation({
319315
processBulkCreate,
320316
resetCreationInputs,
321317
stepByStepBulkCreate,
318+
setSearchText,
322319
toggleOpen,
323320
]);
324321

packages/react/src/TimePanel/TimePanel.spec.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DateType } from '@mezzanine-ui/core/calendar';
21
import CalendarMethodsMoment from '@mezzanine-ui/core/calendarMethodsMoment';
32
import moment from 'moment';
43
import { getUnitLabel } from '@mezzanine-ui/core/time-panel';
@@ -9,7 +8,6 @@ import {
98
} from '../../__test-utils__/common';
109
import TimePanel from '.';
1110
import { CalendarConfigProvider } from '../Calendar';
12-
import { TimePanelProps } from './TimePanel';
1311

1412
describe('<TimePanel />', () => {
1513
Element.prototype.scrollTo = () => {};

0 commit comments

Comments
 (0)