Skip to content

Commit

Permalink
update:add circular progress to task card
Browse files Browse the repository at this point in the history
  • Loading branch information
maceteligolden committed Nov 27, 2023
1 parent 92c53ad commit 4a401e7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions apps/web/lib/components/kanban-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import BugIcon from "@components/ui/svgs/bug";
import Image from 'next/image';
import VerticalThreeDot from "@components/ui/svgs/vertical-three-dot";
import { DraggableProvided } from "react-beautiful-dnd";
import CircularProgress from "@components/ui/svgs/circular-progress";

function getStyle(provided: DraggableProvided, style: any) {
if (!style) {
Expand Down Expand Up @@ -78,9 +79,7 @@ const stackImages = (index: number, length: number) => {
* @param props
* @returns
*/
export default function Item(props: any) {


export default function Item(props: any) {

const {
item,
Expand All @@ -91,7 +90,7 @@ export default function Item(props: any) {
isClone,
index,
} = props;

return (
<section
href={``}
Expand All @@ -111,17 +110,19 @@ export default function Item(props: any) {
<div className="flex gap-1.5 border-b border-b-gray-200 pb-4">
<div className="flex flex-col gap-5 grow">
<TagList tags={item.tags}/>
<div className="flex flex-row items-center gap-2 text-sm not-italic font-semibold">
<div className="bg-indianRed rounded p-1">
<div className="flex flex-row flex-wrap items-center text-sm not-italic font-semibold">
<span className="bg-indianRed rounded p-1 mr-1">
<BugIcon/>
</div>
<p className="text-grey text-normal">#213</p>
<p className="text-black dark:text-white text-normal capitalize">{item.content}</p>
</span>
<span className="text-grey text-normal mr-1">#213</span>
<span className="text-black dark:text-white text-normal capitalize">{item.content}</span>

</div>
</div>
<div className="flex flex-col w-[48px] items-end">
<div className="flex flex-col justify-between w-[48px] items-end">
<VerticalThreeDot/>

<CircularProgress percentage={10}/>
</div>
</div>
<div className="flex flex-row justify-between items-center pt-4">
Expand Down

0 comments on commit 4a401e7

Please sign in to comment.