From 61b063a441e37d30e46d0aad56140a44b2307c55 Mon Sep 17 00:00:00 2001 From: maceteligolden Date: Mon, 27 Nov 2023 15:26:22 +0100 Subject: [PATCH] update:add priority to task card --- apps/web/lib/components/kanban-card.tsx | 26 +++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/apps/web/lib/components/kanban-card.tsx b/apps/web/lib/components/kanban-card.tsx index 24cdf4768..fcd0a08c0 100644 --- a/apps/web/lib/components/kanban-card.tsx +++ b/apps/web/lib/components/kanban-card.tsx @@ -3,6 +3,7 @@ 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"; +import PriorityIcon from "@components/ui/svgs/priority-icon"; function getStyle(provided: DraggableProvided, style: any) { if (!style) { @@ -74,6 +75,27 @@ const stackImages = (index: number, length: number) => { } } +function Priority({ + level +}: { + level: number +}) { + + const numberArray = Array.from({ length: level }, (_, index) => index + 1); + + return( + <> +
+ {numberArray.map((item: any, index: number)=> { + return ( + + ) + })} +
+ + ) +} + /** * card that represent each task * @param props @@ -115,8 +137,8 @@ export default function Item(props: any) { #213 - {item.content} - + {item.content} +