| 1 |
import React from 'react'; |
| 2 |
import PropTypes from 'prop-types'; |
| 3 |
|
| 4 |
const SettingText = (props) => { |
| 5 |
return ( |
| 6 |
<input |
| 7 |
className="bvs-setting-input" |
| 8 |
type="text" |
| 9 |
value={props.value} |
| 10 |
onChange={(e) => props.onValueChange(e.target.value)} |
| 11 |
/> |
| 12 |
); |
| 13 |
} |
| 14 |
|
| 15 |
SettingText.propTypes = { |
| 16 |
setting: PropTypes.object.isRequired, |
| 17 |
value: PropTypes.any.isRequired, |
| 18 |
onValueChange: PropTypes.func.isRequired, |
| 19 |
} |
| 20 |
|
| 21 |
export default SettingText; |