Skip to content

Commit

Permalink
added user urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil committed Dec 4, 2021
1 parent 05b6da9 commit 124e5ba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/kanban/kanbanItem/kanbanItem.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { isEmpty } from 'ramda';

export const KanbanItemComponent = ({ item }) => {
return (
<a href={item.html_url}>
<a href={item.html_url} target="_blank" rel="noreferrer">
<div className="relative flex flex-col items-start p-4 mt-3 bg-white rounded-lg cursor-pointer bg-opacity-90 group hover:bg-opacity-100 border-2">
<div className="flex">
{item.labels.map((label) => (
Expand Down Expand Up @@ -44,20 +44,23 @@ export const KanbanItemComponent = ({ item }) => {
</svg>
<span className="ml-1 leading-none">{item.comments}</span>
</div>

<div className="ml-auto flex">
{isEmpty(item.assignees) ? (
<Image width={24} height={24} alt="User's avatar" className="rounded-full" src={item.user.avatar_url} />
<a href={item.user.html_url} target="_blank" rel="noreferrer">
<Image width={24} height={24} alt="User's avatar" className="rounded-full" src={item.user.avatar_url} />
</a>
) : (
item.assignees.map((assignee) => (
<div key={assignee.id} className="ml-1">
<a href={assignee.html_url} target="_blank" rel="noreferrer" key={assignee.id} className="ml-1">
<Image
width={24}
height={24}
alt="User's avatar"
className="rounded-full"
src={assignee.avatar_url}
/>
</div>
</a>
))
)}
</div>
Expand Down

1 comment on commit 124e5ba

@vercel
Copy link

@vercel vercel bot commented on 124e5ba Dec 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.