|
|
@ -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}
|
|
|
|