doc: add numeral to cases

This commit is contained in:
Leon Xu committed 2022-05-03 21:07:38 -07:00
1 parent b42aab585b
commit 33b1821158
1 file changed
+3 -2
+3 -2
View File
@@ -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;