Skip to content

Commit

Permalink
add formating to number
Browse files Browse the repository at this point in the history
  • Loading branch information
gegyhamdani committed Jul 2, 2021
1 parent 8dfca97 commit bfac47f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/Layout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ const Layout = () => {
<Main>
<Container>
<Square1>
<Date style={{ fontSize: "1.1em" }}>Update Terakhir: {updated}</Date>
<Date style={{ fontSize: "1.1em" }}>
Update Terakhir: {updated.toLocaleString("id")}
</Date>
<Title>Data Terbaru Corona di Indonesia</Title>
<Information>
<Data>
<h1>{confirmed}</h1>
<h1>{confirmed.toLocaleString("id")}</h1>
<p>Total Kasus</p>
</Data>
<Border />
<Data>
<h1 style={{ color: "#00a08f" }}>{recovered}</h1>
<h1 style={{ color: "#00a08f" }}>
{recovered.toLocaleString("id")}
</h1>
<p>Sembuh</p>
</Data>
<Border />
Expand Down

1 comment on commit bfac47f

@vercel
Copy link

@vercel vercel bot commented on bfac47f Jul 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.