Format funds amount. Use ghost button for back.

This commit is contained in:
jahooma 2021-12-19 18:17:21 -06:00
parent e9e6ea9a4a
commit 605911bfee
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@ export function AddFundsButton() {
</div> </div>
<div className="modal-action"> <div className="modal-action">
<label htmlFor="add-funds" className={clsx('btn')}> <label htmlFor="add-funds" className={clsx('btn btn-ghost')}>
Back Back
</label> </label>

View File

@ -1,5 +1,6 @@
import clsx from 'clsx' import clsx from 'clsx'
import React from 'react' import React from 'react'
import { formatMoney } from '../lib/util/format'
import { Row } from './layout/row' import { Row } from './layout/row'
export function YesNoSelector(props: { export function YesNoSelector(props: {
@ -87,7 +88,7 @@ export function FundsSelector(props: {
onClick={() => onSelect(amount as any)} onClick={() => onSelect(amount as any)}
className={btnClassName} className={btnClassName}
> >
M$ {amount} {formatMoney(amount)}
</Button> </Button>
))} ))}
</Row> </Row>