This commit is contained in:
Diego Mello 2020-05-15 18:03:19 -03:00
parent 6695fccbd8
commit 100824ebd0
2 changed files with 6 additions and 2 deletions

View File

@ -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
}; };

View File

@ -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;