lint
This commit is contained in:
parent
6695fccbd8
commit
100824ebd0
|
@ -41,6 +41,7 @@ const FormContainer = ({ children, theme, testID }) => (
|
||||||
|
|
||||||
FormContainer.propTypes = {
|
FormContainer.propTypes = {
|
||||||
theme: PropTypes.string,
|
theme: PropTypes.string,
|
||||||
|
testID: PropTypes.string,
|
||||||
children: PropTypes.element
|
children: PropTypes.element
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@ import styles from './styles';
|
||||||
import Markdown from '../../containers/markdown';
|
import Markdown from '../../containers/markdown';
|
||||||
import { themes } from '../../constants/colors';
|
import { themes } from '../../constants/colors';
|
||||||
|
|
||||||
const Item = ({ label, content, theme, testID }) => (
|
const Item = ({
|
||||||
|
label, content, theme, testID
|
||||||
|
}) => (
|
||||||
content ? (
|
content ? (
|
||||||
<View style={styles.item} testID={testID}>
|
<View style={styles.item} testID={testID}>
|
||||||
<Text accessibilityLabel={label} style={[styles.itemLabel, { color: themes[theme].titleText }]}>{label}</Text>
|
<Text accessibilityLabel={label} style={[styles.itemLabel, { color: themes[theme].titleText }]}>{label}</Text>
|
||||||
|
@ -21,7 +23,8 @@ const Item = ({ label, content, theme, testID }) => (
|
||||||
Item.propTypes = {
|
Item.propTypes = {
|
||||||
label: PropTypes.string,
|
label: PropTypes.string,
|
||||||
content: PropTypes.string,
|
content: PropTypes.string,
|
||||||
theme: PropTypes.string
|
theme: PropTypes.string,
|
||||||
|
testID: PropTypes.string
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Item;
|
export default Item;
|
||||||
|
|
Loading…
Reference in New Issue