MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / MoneyInput

Function MoneyInput

src/components/MoneyInput/MoneyInput.react.js:12–24  ·  view source on GitHub ↗
({ enabled = true, value, onChange = () => {} })

Source from the content-addressed store, hash-verified

10import styles from 'components/MoneyInput/MoneyInput.scss';
11
12const 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
26export default MoneyInput;
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected