Skip to content

Commit

Permalink
added tooltip to avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2715 committed Dec 15, 2022
1 parent d70798e commit a00cfdb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/IssueCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ReactMD from "react-markdown";
import { Card, Avatar, Tag, Button, Space, Badge } from "antd";
import { Card, Avatar, Tag, Button, Space, Tooltip } from "antd";
import { Issue } from "../types/issue";
// import {
// EditOutlined,
Expand All @@ -18,11 +18,13 @@ export default function IssueCard({ issue }: { issue: Issue }) {
title={issue.title}
style={{ minWidth: "400px", width: "50rem" }}
extra={
<Avatar
size={32}
icon={<img src={issue.user?.avatar_url} alt="avatar" />}
onClick={() => window.open(issue.user?.html_url ?? "", "_blank")}
/>
<Tooltip title="Go to Profile" placement="right">
<Avatar
size={32}
icon={<img src={issue.user?.avatar_url} alt="avatar" />}
onClick={() => window.open(issue.user?.html_url ?? "", "_blank")}
/>
</Tooltip>
}
>
<p
Expand Down

0 comments on commit a00cfdb

Please sign in to comment.