fix: record object chip background color when idle (not hovered) (#4662)
Fixes #4651 https://github.com/twentyhq/twenty/assets/50639499/c4b604a1-4e73-422a-bc13-a2764f564a75 --------- Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { useContext } from 'react';
|
||||
import { EntityChip } from 'twenty-ui';
|
||||
import { EntityChip, EntityChipVariant } from 'twenty-ui';
|
||||
|
||||
import { useMapToObjectRecordIdentifier } from '@/object-metadata/hooks/useMapToObjectRecordIdentifier';
|
||||
import { RecordTableRowContext } from '@/object-record/record-table/contexts/RecordTableRowContext';
|
||||
@ -11,6 +11,7 @@ export type RecordChipProps = {
|
||||
record: ObjectRecord;
|
||||
maxWidth?: number;
|
||||
className?: string;
|
||||
variant?: EntityChipVariant;
|
||||
};
|
||||
|
||||
export const RecordChip = ({
|
||||
@ -18,6 +19,7 @@ export const RecordChip = ({
|
||||
record,
|
||||
maxWidth,
|
||||
className,
|
||||
variant,
|
||||
}: RecordChipProps) => {
|
||||
const { mapToObjectRecordIdentifier } = useMapToObjectRecordIdentifier({
|
||||
objectNameSingular,
|
||||
@ -44,6 +46,7 @@ export const RecordChip = ({
|
||||
linkToEntity={linkToEntity}
|
||||
maxWidth={maxWidth}
|
||||
className={className}
|
||||
variant={variant}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user