File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import CancelFile from "../vectors/CancelFile";
4
4
import MoveFirstIcon from "../vectors/MoveFirstIcon" ;
5
5
6
6
import { round } from "../../utils/mathUtils" ;
7
+ import { MAX_SIZE } from "../../utils/computeQuantities" ;
7
8
8
9
import "./FileCard.css" ;
9
10
@@ -70,7 +71,8 @@ const FileCard: FC<Props> = ({
70
71
size: { numberFormat . format ( round ( size , 1 ) ) } MB
71
72
</ small >
72
73
< small className = "fileCard__stats__unit" >
73
- cum. size: { numberFormat . format ( round ( cumSize , 1 ) ) } MB
74
+ cum. size: { numberFormat . format ( round ( cumSize , 1 ) ) } MB/
75
+ { numberFormat . format ( round ( MAX_SIZE , 1 ) ) } MB
74
76
</ small >
75
77
</ span >
76
78
</ div >
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import FileErrors from "./FileErrors";
10
10
import useFiles from "../../hooks/useFiles" ;
11
11
import FirebaseContext from "../../context/FirebaseContext" ;
12
12
13
- import computeQuantities from "../../utils/computeQuantities" ;
13
+ import computeQuantities , { MAX_SIZE } from "../../utils/computeQuantities" ;
14
14
import { round } from "../../utils/mathUtils" ;
15
15
16
16
import "./Home.css" ;
@@ -59,7 +59,6 @@ const Home: FC<{}> = () => {
59
59
const {
60
60
totalArticles,
61
61
totalCitations,
62
- totalSize,
63
62
articleCap,
64
63
citationCap,
65
64
sizeCap,
@@ -97,7 +96,7 @@ const Home: FC<{}> = () => {
97
96
< div className = "frame-article" >
98
97
< span className = "total-articles" >
99
98
{ numberFormat . format ( round ( sizeCap , 1 ) ) } /
100
- { numberFormat . format ( round ( totalSize , 1 ) ) }
99
+ { numberFormat . format ( round ( MAX_SIZE , 1 ) ) }
101
100
</ span >
102
101
< span className = "articles" > size [MB]</ span >
103
102
</ div >
You can’t perform that action at this time.
0 commit comments