This repository was archived by the owner on Feb 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { StyleSheet } from 'react-native' ;
2+ import { View , StyleSheet } from 'react-native' ;
33import { observer } from 'mobx-react' ;
44import PropTypes from 'prop-types' ;
55import Background from '../component/background' ;
@@ -24,6 +24,9 @@ const styles = StyleSheet.create({
2424 color : color . pinkSig ,
2525 fontSize : font . sizeS ,
2626 } ,
27+ bottomPadding : {
28+ paddingBottom : 30 ,
29+ } ,
2730} ) ;
2831
2932const ChannelDetailView = ( { store, nav } ) => (
@@ -59,9 +62,16 @@ const ChannelDetailView = ({ store, nav }) => (
5962 < DetailField name = "Balance" >
6063 { store . selectedChannel . localBalanceLabel } { store . unitLabel }
6164 </ DetailField >
62- < Button style = { styles . deleteBtn } onPress = { ( ) => nav . goChannelDelete ( ) } >
63- < ButtonText style = { styles . deleteBtnText } > CLOSE CHANNEL</ ButtonText >
64- </ Button >
65+ { ! / c l o s e | c l o s i n g / i. test ( store . selectedChannel . status ) ? (
66+ < Button
67+ style = { styles . deleteBtn }
68+ onPress = { ( ) => nav . goChannelDelete ( ) }
69+ >
70+ < ButtonText style = { styles . deleteBtnText } > CLOSE CHANNEL</ ButtonText >
71+ </ Button >
72+ ) : (
73+ < View style = { styles . bottomPadding } />
74+ ) }
6575 </ Modal >
6676 </ MainContent >
6777 </ Background >
You can’t perform that action at this time.
0 commit comments