fix: team avatar booking option 2 (#1274)
parent
3b00bc7508
commit
bbf96a2e1d
|
@ -28,11 +28,15 @@ export const AvatarGroup = function AvatarGroup(props: AvatarGroupProps) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul className={classNames("flex -space-x-2 overflow-hidden", props.className)}>
|
<ul className={classNames("flex -space-x-2 overflow-hidden", props.className)}>
|
||||||
{props.items.slice(0, props.truncateAfter).map((item, idx) => (
|
{props.items.slice(0, props.truncateAfter).map((item, idx) => {
|
||||||
<li key={idx} className="inline-block">
|
if (item.image != null) {
|
||||||
<Avatar imageSrc={item.image} title={item.title} alt={item.alt || ""} size={props.size} />
|
return (
|
||||||
</li>
|
<li key={idx} className="inline-block">
|
||||||
))}
|
<Avatar imageSrc={item.image} title={item.title} alt={item.alt || ""} size={props.size} />
|
||||||
|
</li>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
})}
|
||||||
{/*props.items.length > props.truncateAfter && (
|
{/*props.items.length > props.truncateAfter && (
|
||||||
<li className="relative inline-block">
|
<li className="relative inline-block">
|
||||||
<Tooltip.Tooltip delayDuration="300">
|
<Tooltip.Tooltip delayDuration="300">
|
||||||
|
|
Loading…
Reference in New Issue