Skip to content

Commit

Permalink
fix: errors (#2965)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric921 authored Aug 27, 2024
1 parent 075d187 commit f05d0a5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
8 changes: 7 additions & 1 deletion apps/web/lib/features/all-teams-members-block-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ export default function AllTeamsMembersBlockView({ teams }: { teams: IOrganizati
return (
<>
{employeesArray.length > 0 ? (
employeesArray.map((employee) => <UserTeamBlockCard key={employee.id} member={employee} />)
<div className="flex w-full flex-wrap items-start">{
employeesArray.map((employee) =>
<div className="px-2" key={employee.id}>
<UserTeamBlockCard key={employee.id} member={employee} />
</div>
)
}</div>
) : (
<div className="text-center font-medium w-full">There is no member for filtered value</div>
)}
Expand Down
12 changes: 9 additions & 3 deletions apps/web/lib/features/all-teams-members-card-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ export default function TeamsMembersCardView({ teams }: { teams: IOrganizationTe

<AccordionContent className="bg-light--theme border-none dark:bg-dark--theme flex flex-col gap-2 mt-4">
{team.members.length > 0 ? (
team.members.map((member) => {
return <UserTeamCard key={`${member.id}${team.id}`} member={member} />;
})
<ul>
{team.members.map((member) => {
return (
<li key={member.id} className='mb-4'>
<UserTeamCard key={`${member.id}${team.id}`} member={member} />
</li>
)
})}
</ul>
) : (
<div className="text-center font-medium">
There is no member for filtered value in the team{' '}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function MemberFilter() {
{({ open }) => {
return (
<>
<Listbox.Button as="div" className="cursor-pointer">
<Listbox.Button as="div" className="cursor-pointer border rounded-lg dark:border-dark-lighter">
<MemberFilterOption
label={value.label}
icon={
Expand Down

0 comments on commit f05d0a5

Please sign in to comment.