Skip to content

Commit

Permalink
style: sets the maximum avatars displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
newarifrh committed Sep 6, 2024
1 parent a468732 commit 4b2892b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/team/TeamItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ const TeamItem = ({ team, onItemUpdated, onItemDeleted }: TeamItemProps) => {
maskClosable: true,
closable: true,
okCancel: true,
title: status ? `Hapus Admin: ${user.name}` : `Jadikan Admin: ${user.name}`,
title: status
? `Hapus Admin: ${user.name}`
: `Jadikan Admin: ${user.name}`,
content: status
? `Apakah Anda yakin ingin menghapus ${user.name} sebagai Admin?`
: `Apakah Anda yakin ingin menjadikan ${user.name} sebagai Admin?`,
Expand Down Expand Up @@ -150,7 +152,12 @@ const TeamItem = ({ team, onItemUpdated, onItemDeleted }: TeamItemProps) => {

<div className="flex flex-col justify-center gap-3 mr-10">
<div className="text-lg text-black font-semibold">{team.name}</div>
<Avatar.Group>
<Avatar.Group
max={{
count: 8,
style: { color: "#f56a00", backgroundColor: "#fde3cf" },
}}
>
{team.users.map((item, index) => {
return (
<Tooltip title={item.user.name} placement="top" key={index}>
Expand Down

0 comments on commit 4b2892b

Please sign in to comment.