Skip to content

Commit

Permalink
fix standardjs format
Browse files Browse the repository at this point in the history
  • Loading branch information
bartonhammond committed Sep 20, 2016
1 parent 86ab853 commit bd08c23
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
43 changes: 21 additions & 22 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,31 +150,30 @@ var Header = React.createClass({
source={require('../images/Snowflake.png')}
/>
</TouchableHighlight>
{this.props.isFetching
? <ActivityIndicator animating size='large' />
: null
{this.props.isFetching
? <ActivityIndicator animating size='large' />
: null
}

</View>
{this.props.showState
? <View style={styles.container}>
<Text>{I18n.t('Header.current_state')} ({I18n.t('Header.see_console')})</Text>
<TextInput style={{height: 100, borderColor: 'gray', borderWidth: 1}}
value={displayText}
editable
multiline
onChangeText={(text) => this._onChangeText(text)}
numberOfLines={20} />

<View style={{
marginTop: 10
}}>
<FormButton isDisabled={this.state.isDisabled}
onPress={this._updateStateButtonPress}
buttonText={I18n.t('Header.update_state')} />
</View>
</View>
: null}
{this.props.showState
? <View style={styles.container}>
<Text>{I18n.t('Header.current_state')} ({I18n.t('Header.see_console')})</Text>
<TextInput style={{height: 100, borderColor: 'gray', borderWidth: 1}}
value={displayText}
editable
multiline
onChangeText={(text) => this._onChangeText(text)}
numberOfLines={20} />
<View style={{
marginTop: 10
}}>
<FormButton isDisabled={this.state.isDisabled}
onPress={this._updateStateButtonPress}
buttonText={I18n.t('Header.update_state')} />
</View>
</View>
: null}
</View>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoginRender.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class LoginRender extends Component {
form={this.props.auth.form}
value={this.state.value}
onChange={self.onChange.bind(self)} />
{passwordCheckbox}
{passwordCheckbox}
</View>

<FormButton
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Main extends Component {
onSetState={this.props.actions.setState} />

<Button style={styles.button} onPress={this.handlePress.bind(this)}>
{I18n.t('Main.navigate')}
{I18n.t('Main.navigate')}
</Button>
</View>
</View>
Expand Down

0 comments on commit bd08c23

Please sign in to comment.