github
1384 of 2736 branches covered (50.58%)
4 of 785 new or added lines in 43 files covered. (0.51%)
7 existing lines in 3 files now uncovered.13872 of 74920 relevant lines covered (18.52%)
1.85 hits per line
NEW
|
import { cn } from '@teable/ui-lib/shadcn'; |
|
NEW
|
import { UserAvatar } from '../../user/UserAvatar'; |
× |
NEW
|
|
× |
NEW
|
interface ICollaboratorProps { |
× |
NEW
|
name: string; |
× |
NEW
|
email: string; |
× |
NEW
|
avatar?: string | null;
|
× |
NEW
|
className?: string;
|
× |
NEW
|
} |
× |
NEW
|
|
× |
NEW
|
export const Collaborator = (props: ICollaboratorProps) => { |
× |
NEW
|
const { name, email, avatar, className } = props;
|
× |
NEW
|
|
× |
NEW
|
return (
|
× |
NEW
|
<div className={cn('flex flex-1', className)}> |
× |
NEW
|
<UserAvatar user={{ name, avatar }} /> |
× |
NEW
|
<div className="ml-2 flex flex-1 flex-col space-y-1">
|
× |
NEW
|
<p className="text-sm font-medium leading-none">{name}</p>
|
× |
NEW
|
<p className="text-xs leading-none text-muted-foreground">{email}</p>
|
× |
NEW
|
</div> |
× |
NEW
|
</div> |
× |
NEW
|
); |
× |
NEW
|
}; |
× |