mirror of
https://github.com/twentyhq/twenty.git
synced 2024-09-11 15:35:36 +03:00
Fix lint and used constant (#6082)
- Fixed lint after merge of #6077 - Used constant for dropdown id
This commit is contained in:
parent
b371c77284
commit
504e7b7d94
@ -15,7 +15,7 @@ export const MAX_RECORDS_TO_DISPLAY = 3;
|
||||
|
||||
type ObjectFilterDropdownRecordSelectProps = {
|
||||
viewComponentId?: string;
|
||||
}
|
||||
};
|
||||
export const ObjectFilterDropdownRecordSelect = ({
|
||||
viewComponentId,
|
||||
}: ObjectFilterDropdownRecordSelectProps) => {
|
||||
@ -31,7 +31,8 @@ export const ObjectFilterDropdownRecordSelect = ({
|
||||
} = useFilterDropdown();
|
||||
|
||||
const { removeCombinedViewFilter } = useCombinedViewFilters(viewComponentId);
|
||||
const { currentViewWithCombinedFiltersAndSorts } = useGetCurrentView(viewComponentId);
|
||||
const { currentViewWithCombinedFiltersAndSorts } =
|
||||
useGetCurrentView(viewComponentId);
|
||||
|
||||
const filterDefinitionUsedInDropdown = useRecoilValue(
|
||||
filterDefinitionUsedInDropdownState,
|
||||
|
@ -17,6 +17,8 @@ import { GenericEntityFilterChip } from './GenericEntityFilterChip';
|
||||
import { ObjectFilterDropdownRecordSelect } from './ObjectFilterDropdownRecordSelect';
|
||||
import { ObjectFilterDropdownSearchInput } from './ObjectFilterDropdownSearchInput';
|
||||
|
||||
const SINGLE_ENTITY_FILTER_DROPDOWN_ID = 'single-entity-filter-dropdown';
|
||||
|
||||
export const SingleEntityObjectFilterDropdownButton = ({
|
||||
hotkeyScope,
|
||||
}: {
|
||||
@ -50,7 +52,7 @@ export const SingleEntityObjectFilterDropdownButton = ({
|
||||
|
||||
return (
|
||||
<Dropdown
|
||||
dropdownId="single-entity-filter-dropdown"
|
||||
dropdownId={SINGLE_ENTITY_FILTER_DROPDOWN_ID}
|
||||
dropdownHotkeyScope={hotkeyScope}
|
||||
dropdownOffset={{ x: 0, y: -28 }}
|
||||
clickableComponent={
|
||||
@ -75,7 +77,9 @@ export const SingleEntityObjectFilterDropdownButton = ({
|
||||
<ObjectFilterDropdownSearchInput />
|
||||
<DropdownMenuSeparator />
|
||||
<ObjectFilterDropdownRecordRemoveFilterMenuItem />
|
||||
<ObjectFilterDropdownRecordSelect viewComponentId={"single-entity-filter-dropdown"}/>
|
||||
<ObjectFilterDropdownRecordSelect
|
||||
viewComponentId={SINGLE_ENTITY_FILTER_DROPDOWN_ID}
|
||||
/>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user