feat: progress bar for module (#446)

This commit is contained in:
Aaryan Khandelwal 2023-03-15 18:00:40 +05:30 committed by GitHub
parent ae8902e815
commit c11bf7c7de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 86 additions and 72 deletions

View file

@ -62,6 +62,7 @@ export const SingleCycleCard: React.FC<TSingleStatProps> = (props) => {
const router = useRouter();
const { workspaceSlug, projectId } = router.query;
const { setToastAlert } = useToast();
const { data: cycleIssues } = useSWR(
@ -80,7 +81,7 @@ export const SingleCycleCard: React.FC<TSingleStatProps> = (props) => {
started: [],
cancelled: [],
completed: [],
...groupBy(cycleIssues ?? [], "issue_detail.state_detail.group"),
...groupBy(cycleIssues ?? [], "state_detail.group"),
};
const handleAddToFavorites = () => {
@ -324,7 +325,7 @@ export const SingleCycleCard: React.FC<TSingleStatProps> = (props) => {
}`}
>
<div className="flex w-full items-center gap-2 px-4 py-1">
<span> Progress </span>
<span>Progress</span>
<LinearProgressIndicator data={progressIndicatorData} />
<Disclosure.Button>
<span className="p-1">