fix: task

Deskripsi:
- nan pada progres task divisi
- loading skeleton list task

No Issues
This commit is contained in:
amel
2024-11-06 11:18:10 +08:00
parent be7ece6cf2
commit 7dc19799a0

View File

@@ -54,17 +54,16 @@ export default function ListDivisionTask() {
}
};
useShallowEffect(() => {
fetchData(false)
}, [isPage])
useShallowEffect(() => {
setPage(1)
fetchData(true);
}, [status, searchQuery]);
useShallowEffect(() => {
fetchData(false)
}, [isPage])
useEffect(() => {
const handleScroll = async () => {
if (containerRef && containerRef.current) {
@@ -249,8 +248,8 @@ export default function ListDivisionTask() {
</Card.Section>
<Box pt={10}>
<Progress.Root size="xl" radius="xl" style={{ border: `1px solid ${'#BDBDBD'}` }}>
<Progress.Section value={v.progress} color="yellow" striped >
<Progress.Label>{v.progress}%</Progress.Label>
<Progress.Section value={_.isNull(v.progress) ? 0 : v.progress} color="yellow" striped >
<Progress.Label>{_.isNull(v.progress) ? 0 : v.progress}%</Progress.Label>
</Progress.Section>
</Progress.Root>
<Text my={10}>{v.desc}</Text>