doc: add numeral to cases
This commit is contained in:
1 parent
b42aab585b
commit
33b1821158
1 file changed
+3
-2
+3
-2
@@ -1,5 +1,6 @@
|
||||
import React from "react";
|
||||
import "./Table.css";
|
||||
import numeral from "numeral";
|
||||
|
||||
function Table({ countries }) {
|
||||
return (
|
||||
@@ -8,7 +9,7 @@ function Table({ countries }) {
|
||||
<tr>
|
||||
<td>{country}</td>
|
||||
<td>
|
||||
<strong>{cases}</strong>
|
||||
<strong>{numeral(cases).format("0,0")}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
@@ -16,4 +17,4 @@ function Table({ countries }) {
|
||||
);
|
||||
}
|
||||
|
||||
export default Table;
|
||||
export default Table;
|
||||
Reference in new issue
Block a user