Skip to content

Commit

Permalink
fixes linting after wrong lint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez authored and davidsingal committed Mar 9, 2023
1 parent 8a0d2fe commit 1cd127d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const AutoCompleteSelect = <T,>({
</Combobox.Option>
);
},
[filteredOptions],
[filteredOptions, props],
);

const clearSelection = useCallback(() => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/forms/select/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type Option<T = string> = {
disabled?: boolean;
};

type SelectValue<M> = M extends true ? Option<T>[] : Option<T>;
type SelectValue<M> = M extends true ? Option<T>[] : Option<T>;

export type SelectProps<T = string> = Omit<
React.SelectHTMLAttributes<HTMLSelectElement>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const GroupByFilter: React.FC = () => {
value={currentValue}
options={options}
onChange={handleChange}
data-testid='group-filters'
data-testid="group-filters"
/>
);
};
Expand Down
3 changes: 2 additions & 1 deletion client/src/pages/data/scenarios/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { omit } from 'lodash-es';
import ListIcon from 'components/icons/list';
import GridIcon from 'components/icons/grid';
import ButtonGroup, { LinkGroupItem } from 'components/button-group';
import Select, { Option } from 'components/forms/select';
import Select from 'components/forms/select';
import Search from 'components/search';
import { useScenarios } from 'hooks/scenarios';
import AdminLayout from 'layouts/admin';
Expand All @@ -18,6 +18,7 @@ import Loading from 'components/loading';
import { usePermissions } from 'hooks/permissions';
import { Permission } from 'hooks/permissions/enums';

import type { Option } from 'components/forms/select';
import type { ScenarioCardProps } from 'containers/scenarios/card/types';

const DISPLAY_OPTIONS: ScenarioCardProps['display'][] = ['grid', 'list'];
Expand Down

0 comments on commit 1cd127d

Please sign in to comment.