Fixed: Book status always green on Book Index page

pull/2126/head
Qstick 2 years ago
parent d556b77f9d
commit 8c97df1be6

@ -16,14 +16,14 @@ function BookIndexProgressBar(props) {
detailedProgressBar detailedProgressBar
} = props; } = props;
const progress = bookCount ? bookFileCount / bookCount * 100 : 100; const progress = bookCount ? bookFileCount / totalBookCount * 100 : 0;
const text = `${bookFileCount} / ${bookCount}`; const text = `${bookFileCount} / ${bookCount}`;
return ( return (
<ProgressBar <ProgressBar
className={styles.progressBar} className={styles.progressBar}
containerClassName={styles.progress} containerClassName={styles.progress}
progress={progress} progress={100}
kind={getProgressBarKind('ended', monitored, progress)} kind={getProgressBarKind('ended', monitored, progress)}
size={detailedProgressBar ? sizes.MEDIUM : sizes.SMALL} size={detailedProgressBar ? sizes.MEDIUM : sizes.SMALL}
showText={detailedProgressBar} showText={detailedProgressBar}

Loading…
Cancel
Save