Remove reference to data-testid from styling (#10407)

Fixes https://github.com/twentyhq/core-team-issues/issues/204

---------

Co-authored-by: ad-elias <elias@autodiligence.com>
This commit is contained in:
eliasylonen
2025-02-28 16:37:14 +01:00
committed by GitHub
parent 47b7c696d5
commit 2773dde714
9 changed files with 62 additions and 25 deletions

View File

@ -22,6 +22,7 @@ export type RecordChipProps = {
maxWidth?: number;
to?: string | undefined;
size?: ChipSize;
isLabelHidden?: boolean;
};
export const RecordChip = ({
@ -33,6 +34,7 @@ export const RecordChip = ({
to,
size,
forceDisableClick = false,
isLabelHidden = false,
}: RecordChipProps) => {
const { recordChipData } = useRecordChipData({
objectNameSingular,
@ -76,6 +78,7 @@ export const RecordChip = ({
maxWidth={maxWidth}
placeholderColorSeed={record.id}
name={recordChipData.name}
isLabelHidden={isLabelHidden}
avatarType={recordChipData.avatarType}
avatarUrl={recordChipData.avatarUrl ?? ''}
className={className}