format tip amount
This commit is contained in:
parent
ca03245d91
commit
e64fbb0a66
|
@ -1,7 +1,8 @@
|
||||||
import { HeartIcon } from '@heroicons/react/outline'
|
|
||||||
import { Button } from 'web/components/button'
|
|
||||||
import { formatMoney } from 'common/util/format'
|
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
|
import { HeartIcon } from '@heroicons/react/outline'
|
||||||
|
|
||||||
|
import { Button } from 'web/components/button'
|
||||||
|
import { formatMoney, shortFormatNumber } from 'common/util/format'
|
||||||
import { Col } from 'web/components/layout/col'
|
import { Col } from 'web/components/layout/col'
|
||||||
import { Tooltip } from '../tooltip'
|
import { Tooltip } from '../tooltip'
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@ export function TipButton(props: {
|
||||||
: 'sm:text-2xs text-[0.5rem]'
|
: 'sm:text-2xs text-[0.5rem]'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{totalTipped}
|
{shortFormatNumber(totalTipped)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</Col>
|
</Col>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user