Remove all spaces between M$ and the associated number (#134)
* Remove all spaces between M$ and the associated number * Update index.tsx
This commit is contained in:
parent
bbf419953e
commit
e41f646b42
|
@ -10,7 +10,7 @@ const formatter = new Intl.NumberFormat('en-US', {
|
||||||
export function formatMoney(amount: number) {
|
export function formatMoney(amount: number) {
|
||||||
const newAmount = Math.round(amount) === 0 ? 0 : Math.floor(amount) // handle -0 case
|
const newAmount = Math.round(amount) === 0 ? 0 : Math.floor(amount) // handle -0 case
|
||||||
return (
|
return (
|
||||||
ENV_CONFIG.moneyMoniker + ' ' + formatter.format(newAmount).replace('$', '')
|
ENV_CONFIG.moneyMoniker + formatter.format(newAmount).replace('$', '')
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ export function FeedPromo(props: { hotContracts: Contract[] }) {
|
||||||
<div className="mb-4 text-gray-500">
|
<div className="mb-4 text-gray-500">
|
||||||
Find markets on any topic imaginable. Or create your own!
|
Find markets on any topic imaginable. Or create your own!
|
||||||
<br />
|
<br />
|
||||||
Sign up to get M$ 1,000 and start trading.
|
Sign up to get M$1,000 and start trading.
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<Spacer h={6} />
|
<Spacer h={6} />
|
||||||
|
|
|
@ -56,8 +56,7 @@ export default function Charity(props: {
|
||||||
<Col className="max-w-xl gap-2">
|
<Col className="max-w-xl gap-2">
|
||||||
<Title className="!mt-0" text="Manifold for Good" />
|
<Title className="!mt-0" text="Manifold for Good" />
|
||||||
<div className="mb-6 text-gray-500">
|
<div className="mb-6 text-gray-500">
|
||||||
Donate your winnings to charity! Through the month of May, every M$
|
Donate your winnings to charity! Through the month of May, every M$100 you contribute turns into $1 USD sent to your chosen charity.
|
||||||
100 you contribute turns into $1 USD sent to your chosen charity.
|
|
||||||
<Spacer h={5} />
|
<Spacer h={5} />
|
||||||
Together we've donated over ${Math.floor(totalRaised / 100)} USD so
|
Together we've donated over ${Math.floor(totalRaised / 100)} USD so
|
||||||
far!
|
far!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user