(props)
| 47 | } |
| 48 | |
| 49 | const MuiCurrencyFormat = (props) => { |
| 50 | const { onChange, value, ...rest } = props; |
| 51 | |
| 52 | return ( |
| 53 | <NumberFormat |
| 54 | customInput={TextField} |
| 55 | {...rest} |
| 56 | value={value} |
| 57 | fullWidth |
| 58 | thousandSeparator={true} |
| 59 | decimalScale={2} |
| 60 | onValueChange={(target) => { |
| 61 | onChange(target.floatValue); |
| 62 | }} |
| 63 | isNumericString |
| 64 | prefix="$ " |
| 65 | /> |
| 66 | ); |
| 67 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…