From e41f646b425aab0bfb7ad3a906a0b274267f4e1c Mon Sep 17 00:00:00 2001 From: SirSaltyy <104849031+SirSaltyy@users.noreply.github.com> Date: Thu, 5 May 2022 22:19:47 -0400 Subject: [PATCH] Remove all spaces between M$ and the associated number (#134) * Remove all spaces between M$ and the associated number * Update index.tsx --- common/util/format.ts | 2 +- web/components/feed-create.tsx | 2 +- web/pages/charity/index.tsx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/common/util/format.ts b/common/util/format.ts index e4ac0bd7..765c34d9 100644 --- a/common/util/format.ts +++ b/common/util/format.ts @@ -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('$', '') ) } diff --git a/web/components/feed-create.tsx b/web/components/feed-create.tsx index 0a0c6902..ac3fd562 100644 --- a/web/components/feed-create.tsx +++ b/web/components/feed-create.tsx @@ -37,7 +37,7 @@ export function FeedPromo(props: { hotContracts: Contract[] }) {
Find markets on any topic imaginable. Or create your own!
- Sign up to get M$ 1,000 and start trading. + Sign up to get M$1,000 and start trading.
diff --git a/web/pages/charity/index.tsx b/web/pages/charity/index.tsx index 32e64420..daa4e784 100644 --- a/web/pages/charity/index.tsx +++ b/web/pages/charity/index.tsx @@ -56,8 +56,7 @@ export default function Charity(props: { <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!