From 33b18211584aa8a8f8daa06c6cc02670486294c5 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Tue, 3 May 2022 21:07:38 -0700 Subject: [PATCH] doc: add numeral to cases --- src/Table.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Table.js b/src/Table.js index e8e8e2d..fc0acfa 100644 --- a/src/Table.js +++ b/src/Table.js @@ -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 }) { {country} - {cases} + {numeral(cases).format("0,0")} ))} @@ -16,4 +17,4 @@ function Table({ countries }) { ); } -export default Table; \ No newline at end of file +export default Table;