Skip to content

Commit

Permalink
Remove progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
hieungo89 committed Mar 26, 2024
1 parent 9f1cab9 commit 0b93f55
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/taskCard/taskCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import $box from "@/styles/Box.module.css";
import { differenceInWeeks, format } from "date-fns";
import Link from "next/link";
import { useMemo } from "react";
import ProgressBar from "../progressBar/progressBar";
import $taskCard from "./TaskCard.module.css";

interface ParaTaskCard {
Expand Down Expand Up @@ -65,17 +64,11 @@ const TaskCard = ({ task, isPara }: TaskCardProps) => {
<div className={$taskCard.profile}>
{task.first_name} {task.last_name}
</div>
<div>

<div style={{ display: "flex", justifyContent: "space-between" }}>
<p>
<strong>{task.category}</strong> - {task.description}
</p>
</div>

<div style={{ display: "flex", justifyContent: "space-between" }}>
<div className={$taskCard.progressBar}>
{completionRate}% complete
<ProgressBar fillPercent={completionRate} />
</div>

<div style={{ display: "flex", gap: "1rem" }}>
{/* Para smaller screen view may click on card instead */}
Expand Down

0 comments on commit 0b93f55

Please sign in to comment.