Format money

This commit is contained in:
Ian Philips 2022-10-11 15:36:35 -06:00
parent f714918b88
commit 8beff6eb1f

View File

@ -20,6 +20,7 @@ import {
goldClassName, goldClassName,
silverClassName, silverClassName,
} from 'web/components/badge-display' } from 'web/components/badge-display'
import { formatMoney } from 'common/util/format'
export function BadgesModal(props: { export function BadgesModal(props: {
isOpen: boolean isOpen: boolean
@ -132,7 +133,9 @@ function ProvenCorrectBadgeItem(props: {
<Col className={'text-center'}> <Col className={'text-center'}>
<Medal rarity={rarity} /> <Medal rarity={rarity} />
<Tooltip <Tooltip
text={`Make a comment attached to a winning bet worth ${betAmount}`} text={`Make a comment attached to a winning bet worth ${formatMoney(
betAmount
)}`}
> >
<span <span
className={ className={