chore: cycle and module status indicator improvement (#2942)

This commit is contained in:
Anmol Singh Bhatia 2023-11-29 20:02:41 +05:30 committed by Aaryan Khandelwal
parent 796fd2d6c8
commit 46a1556f83
2 changed files with 8 additions and 1 deletions

View File

@ -38,7 +38,10 @@ type TCyclesListItem = {
export const CyclesListItem: FC<TCyclesListItem> = (props) => {
const { cycle, workspaceSlug, projectId } = props;
// store
const { cycle: cycleStore, trackEvent: { setTrackElement } } = useMobxStore();
const {
cycle: cycleStore,
trackEvent: { setTrackElement },
} = useMobxStore();
// toast
const { setToastAlert } = useToast();
// states
@ -161,6 +164,8 @@ export const CyclesListItem: FC<TCyclesListItem> = (props) => {
) : (
<span className="text-sm text-custom-primary-100">{`!`}</span>
)
) : progress === 100 ? (
<Check className="h-3 w-3 text-custom-primary-100 stroke-[2]" />
) : (
<span className="text-xs text-custom-text-300">{`${progress}%`}</span>
)}

View File

@ -139,6 +139,8 @@ export const ModuleListItem: React.FC<Props> = observer((props) => {
) : (
<span className="text-sm text-custom-primary-100">{`!`}</span>
)
) : progress === 100 ? (
<Check className="h-3 w-3 text-custom-primary-100 stroke-[2]" />
) : (
<span className="text-xs text-custom-text-300">{`${progress}%`}</span>
)}