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:
SirSaltyy 2022-05-05 22:19:47 -04:00 committed by GitHub
parent bbf419953e
commit e41f646b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,7 @@ const formatter = new Intl.NumberFormat('en-US', {
export function formatMoney(amount: number) {
const newAmount = Math.round(amount) === 0 ? 0 : Math.floor(amount) // handle -0 case
return (
ENV_CONFIG.moneyMoniker + ' ' + formatter.format(newAmount).replace('$', '')
ENV_CONFIG.moneyMoniker + formatter.format(newAmount).replace('$', '')
)
}

View File

@ -37,7 +37,7 @@ export function FeedPromo(props: { hotContracts: Contract[] }) {
<div className="mb-4 text-gray-500">
Find markets on any topic imaginable. Or create your own!
<br />
Sign up to get M$ 1,000 and start trading.
Sign up to get M$1,000 and start trading.
<br />
</div>
<Spacer h={6} />

View File

@ -56,8 +56,7 @@ export default function Charity(props: {
<Col className="max-w-xl gap-2">
<Title className="!mt-0" text="Manifold for Good" />
<div className="mb-6 text-gray-500">
Donate your winnings to charity! Through the month of May, every M$
100 you contribute turns into $1 USD sent to your chosen charity.
Donate your winnings to charity! Through the month of May, every M$100 you contribute turns into $1 USD sent to your chosen charity.
<Spacer h={5} />
Together we've donated over ${Math.floor(totalRaised / 100)} USD so
far!