Remove wrapping View from ActionHint
Wasn't necessary after all Issue: 178
This commit is contained in:
@@ -24,14 +24,10 @@ export function AppTextLight(props) {
|
|||||||
export function ActionHint(props) {
|
export function ActionHint(props) {
|
||||||
if(props.isVisible) {
|
if(props.isVisible) {
|
||||||
return (
|
return (
|
||||||
<View
|
|
||||||
style={styles.actionHintWrappingView}
|
|
||||||
isVisible={false}>
|
|
||||||
<AppText
|
<AppText
|
||||||
style={[styles.actionHint, props.style]}>
|
style={[styles.actionHint, props.style]}>
|
||||||
{props.children}
|
{props.children}
|
||||||
</AppText>
|
</AppText>
|
||||||
</View>
|
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
return null
|
return null
|
||||||
|
|||||||
+2
-4
@@ -35,13 +35,11 @@ export default StyleSheet.create({
|
|||||||
fontFamily: fontLight,
|
fontFamily: fontLight,
|
||||||
fontSize: regularSize
|
fontSize: regularSize
|
||||||
},
|
},
|
||||||
actionHintWrappingView: {
|
|
||||||
margin: defaultIndentation
|
|
||||||
},
|
|
||||||
actionHint: {
|
actionHint: {
|
||||||
color: secondaryColor,
|
color: secondaryColor,
|
||||||
fontFamily: fontRegular,
|
fontFamily: fontRegular,
|
||||||
fontSize: hintSize
|
fontSize: hintSize,
|
||||||
|
margin: defaultIndentation
|
||||||
},
|
},
|
||||||
paragraph: {
|
paragraph: {
|
||||||
marginBottom: defaultBottomMargin
|
marginBottom: defaultBottomMargin
|
||||||
|
|||||||
Reference in New Issue
Block a user