({ enabled = true, value, onChange = () => {} })
| 10 | import styles from 'components/MoneyInput/MoneyInput.scss'; |
| 11 | |
| 12 | const MoneyInput = ({ enabled = true, value, onChange = () => {} }) => { |
| 13 | return ( |
| 14 | <input |
| 15 | type={'text'} |
| 16 | disabled={!enabled} |
| 17 | className={styles.moneyInput} |
| 18 | value={'$' + value.toString()} |
| 19 | onChange={e => { |
| 20 | onChange(e.nativeEvent.target.value); |
| 21 | }} |
| 22 | /> |
| 23 | ); |
| 24 | }; |
| 25 | |
| 26 | export default MoneyInput; |
| 27 |
nothing calls this directly
no outgoing calls
no test coverage detected