| Total Complexity | 0 |
| Complexity/F | 0 |
| Lines of Code | 23 |
| 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 Slug = ({ isEdited, slug, editPostSlug }) => ( |
|
| 6 | 1 | <TextField |
|
| 7 | label="Slug" |
||
| 8 | variant="outlined" |
||
| 9 | value={slug} |
||
| 10 | fullWidth |
||
| 11 | error={isEdited} |
||
| 12 | onChange={event => editPostSlug(event.target.value)} |
||
| 13 | /> |
||
| 14 | ) |
||
| 15 | |||
| 16 | export default Slug |
||
| 17 | |||
| 18 | 2 | Slug.propTypes = { |
|
| 19 | isEdited: PropTypes.bool, |
||
| 20 | slug: PropTypes.string, |
||
| 21 | editPostSlug: PropTypes.func |
||
| 22 | } |
||
| 23 |