mirror of
https://github.com/lingble/twenty.git
synced 2025-11-02 21:57:56 +00:00
fix lint
This commit is contained in:
@@ -12,8 +12,10 @@ export const FullNameFieldDisplay = () => {
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
const truncateTheContent = (contentToTruncate: string, maxLength: number) => {
|
||||
return contentToTruncate.length > maxLength ? `${contentToTruncate.slice(0, maxLength)}...` : contentToTruncate;
|
||||
}
|
||||
return contentToTruncate.length > maxLength
|
||||
? `${contentToTruncate.slice(0, maxLength)}...`
|
||||
: contentToTruncate;
|
||||
};
|
||||
|
||||
const content = [fieldValue?.firstName, fieldValue?.lastName]
|
||||
.filter(isNonEmptyString)
|
||||
|
||||
@@ -6,7 +6,7 @@ const StyledEllipsisDisplay = styled.div<{ maxWidth?: number }>`
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
`;
|
||||
`;
|
||||
|
||||
type EllipsisDisplayProps = {
|
||||
children: React.ReactNode;
|
||||
|
||||
Reference in New Issue
Block a user