| Total Complexity | 0 |
| Complexity/F | 0 |
| Lines of Code | 27 |
| Function Count | 0 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Coverage | 75% |
| Changes | 0 | ||
| 1 | import React from 'react' |
||
| 2 | import PropTypes from 'prop-types' |
||
| 3 | import TextField from 'post/components/base/TextField' |
||
| 4 | |||
| 5 | 2 | const Brief = ({ isEdited, brief, editPostBrief }) => ( |
|
| 6 | 1 | <TextField |
|
| 7 | label="Post Brief" |
||
| 8 | required |
||
| 9 | variant="outlined" |
||
| 10 | value={brief} |
||
| 11 | multiline |
||
| 12 | rows={6} |
||
| 13 | rowsMax={8} |
||
| 14 | fullWidth |
||
| 15 | error={isEdited} |
||
| 16 | onChange={event => editPostBrief(event.target.value)} |
||
| 17 | /> |
||
| 18 | ) |
||
| 19 | |||
| 20 | export default Brief |
||
| 21 | |||
| 22 | 2 | Brief.propTypes = { |
|
| 23 | isEdited: PropTypes.bool, |
||
| 24 | brief: PropTypes.string, |
||
| 25 | editPostBrief: PropTypes.func |
||
| 26 | } |
||
| 27 |