From f2bdf9e13edaf319a73c079f973a0703accb428a Mon Sep 17 00:00:00 2001 From: khushal Date: Fri, 18 Oct 2024 19:49:13 +0530 Subject: [PATCH 1/2] added the circular progress bar --- app/components/CourseCard.tsx | 7 +- app/components/Progress.tsx | 174 ++++++++++++++++++++++++++-------- 2 files changed, 135 insertions(+), 46 deletions(-) diff --git a/app/components/CourseCard.tsx b/app/components/CourseCard.tsx index 6b02d1a..f88cbac 100644 --- a/app/components/CourseCard.tsx +++ b/app/components/CourseCard.tsx @@ -10,7 +10,7 @@ import { ContentType, RouteName } from "app/constants" import { AutoImage } from "./AutoImage" import { Button } from "./Button" -import { Progress } from "./Progress" +import CircularProgress from "./Progress" export interface CourseCardProps { /** an optional style override useful for padding & margin. */ @@ -41,10 +41,9 @@ export const CourseCard = observer(function CourseCard(props: CourseCardProps) { style={$image} /> - + - {/* TODO: Change this to a circular progress */} - +