fix: update types from code review

This commit is contained in:
Ephraim Atta-Duncan
2023-06-30 23:49:34 +00:00
parent 88d15376e3
commit b50f64d4ad
6 changed files with 19 additions and 14 deletions

View File

@ -1,7 +1,7 @@
import React from 'react';
import { initials } from '@documenso/lib/client-only/recipient-initials';
import { type } from '@documenso/lib/client-only/recipient-type';
import { getRecipientType } from '@documenso/lib/client-only/recipient-type';
import { Recipient } from '@documenso/prisma/client';
import { StackAvatar } from './stack-avatar';
@ -25,7 +25,7 @@ export function StackAvatars({ recipients }: { recipients: Recipient[] }) {
key={recipient.id}
first={first}
zIndex={String(zIndex - index * 10)}
type={lastItemText && index === 4 ? 'unsigned' : type(recipient)}
type={lastItemText && index === 4 ? 'unsigned' : getRecipientType(recipient)}
fallbackText={lastItemText ? lastItemText : initials(recipient.name)}
/>
);