forked from github/plane
chore: cycle and module status indicator improvement (#2942)
This commit is contained in:
parent
c5996382bc
commit
86de3188b1
@ -38,7 +38,10 @@ type TCyclesListItem = {
|
|||||||
export const CyclesListItem: FC<TCyclesListItem> = (props) => {
|
export const CyclesListItem: FC<TCyclesListItem> = (props) => {
|
||||||
const { cycle, workspaceSlug, projectId } = props;
|
const { cycle, workspaceSlug, projectId } = props;
|
||||||
// store
|
// store
|
||||||
const { cycle: cycleStore, trackEvent: { setTrackElement } } = useMobxStore();
|
const {
|
||||||
|
cycle: cycleStore,
|
||||||
|
trackEvent: { setTrackElement },
|
||||||
|
} = useMobxStore();
|
||||||
// toast
|
// toast
|
||||||
const { setToastAlert } = useToast();
|
const { setToastAlert } = useToast();
|
||||||
// states
|
// states
|
||||||
@ -161,6 +164,8 @@ export const CyclesListItem: FC<TCyclesListItem> = (props) => {
|
|||||||
) : (
|
) : (
|
||||||
<span className="text-sm text-custom-primary-100">{`!`}</span>
|
<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>
|
<span className="text-xs text-custom-text-300">{`${progress}%`}</span>
|
||||||
)}
|
)}
|
||||||
|
@ -139,6 +139,8 @@ export const ModuleListItem: React.FC<Props> = observer((props) => {
|
|||||||
) : (
|
) : (
|
||||||
<span className="text-sm text-custom-primary-100">{`!`}</span>
|
<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>
|
<span className="text-xs text-custom-text-300">{`${progress}%`}</span>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user