Commit dd433fc8 authored by Tankred Hase's avatar Tankred Hase

Do not display close btn on channel details screen on mobile

parent badabeb0
......@@ -54,14 +54,18 @@ const ChannelDetailView = ({ store, nav }) => (
<DetailField name="Balance">
{store.selectedChannel.localBalanceLabel} {store.unitLabel}
</DetailField>
<View style={styles.btnWrapper}>
<Button
style={styles.deleteBtn}
onPress={() => nav.goChannelDelete()}
>
<ButtonText style={styles.deleteBtnText}>CLOSE CHANNEL</ButtonText>
</Button>
</View>
{!/close|closing/i.test(store.selectedChannel.status) ? (
<View style={styles.btnWrapper}>
<Button
style={styles.deleteBtn}
onPress={() => nav.goChannelDelete()}
>
<ButtonText style={styles.deleteBtnText}>
CLOSE CHANNEL
</ButtonText>
</Button>
</View>
) : null}
</Card>
</MainContent>
</SplitBackground>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment