Fix ParticipantChip and stories imports (#4974)

- Fix ParticipantChip
- Fix stories imports after some component have been moved to twenty UI
This commit is contained in:
bosiraphael
2024-04-15 18:09:05 +02:00
committed by GitHub
parent db2935b877
commit d7d9f0c16b
83 changed files with 189 additions and 216 deletions

View File

@ -24,9 +24,13 @@ const StyledContainer = styled.div`
display: flex;
`;
const StyledRecordChip = styled(RecordChip)<{ variant: 'default' | 'bold' }>`
font-weight: ${({ theme, variant }) =>
variant === 'bold' ? theme.font.weight.medium : theme.font.weight.regular};
const StyledRecordChip = styled(RecordChip)<{
participantChipVariant: 'default' | 'bold';
}>`
font-weight: ${({ theme, participantChipVariant }) =>
participantChipVariant === 'bold'
? theme.font.weight.medium
: theme.font.weight.regular};
`;
const StyledChip = styled.div`
@ -63,7 +67,7 @@ export const ParticipantChip = ({
<StyledRecordChip
objectNameSingular={CoreObjectNameSingular.Person}
record={person}
variant={variant}
participantChipVariant={variant}
/>
) : (
<StyledChip>