Expandable list remove anchor (#5559)
Deprecate anchorElement on ExpandableList to avoid props drilling. The anchorElement should be the ExpandableList container itself
This commit is contained in:
@ -6,7 +6,6 @@ import { ExpandableList } from '@/ui/layout/expandable-list/components/Expandabl
|
||||
|
||||
type ActivityTargetChipsProps = {
|
||||
activityTargetObjectRecords: ActivityTargetWithTargetRecord[];
|
||||
anchorElement?: HTMLElement;
|
||||
maxWidth?: number;
|
||||
};
|
||||
|
||||
@ -19,12 +18,11 @@ const StyledContainer = styled.div<{ maxWidth?: number }>`
|
||||
|
||||
export const ActivityTargetChips = ({
|
||||
activityTargetObjectRecords,
|
||||
anchorElement,
|
||||
maxWidth,
|
||||
}: ActivityTargetChipsProps) => {
|
||||
return (
|
||||
<StyledContainer maxWidth={maxWidth}>
|
||||
<ExpandableList anchorElement={anchorElement} isChipCountDisplayed>
|
||||
<ExpandableList isChipCountDisplayed>
|
||||
{activityTargetObjectRecords.map(
|
||||
(activityTargetObjectRecord, index) => (
|
||||
<RecordChip
|
||||
|
||||
Reference in New Issue
Block a user