From 367ec26e7930c8aec1cb2638003577d67f47e969 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 1 Feb 2017 23:44:21 -0700 Subject: [PATCH] Fix whitespace --- .buckconfig | 5 +- src/actions/menuActions.js | 24 ++++----- src/components/help.js | 26 +++++----- src/components/menu.js | 26 +++++----- src/components/resistor.js | 12 +++-- src/containers/app.js | 14 +++--- src/containers/helpApp.js | 26 ++++------ src/containers/menuApp.js | 28 +++++------ src/containers/nav.js | 100 ++++++++++++++++++------------------- src/reducers/index.js | 4 +- src/reducers/menu.js | 56 ++++++++++----------- 11 files changed, 156 insertions(+), 165 deletions(-) diff --git a/.buckconfig b/.buckconfig index 934256c..840da5f 100644 --- a/.buckconfig +++ b/.buckconfig @@ -1,6 +1,5 @@ - [android] - target = Google Inc.:Google APIs:23 + target = Google Inc.:Google APIs:23 [maven_repositories] - central = https://repo1.maven.org/maven2 + central = https://repo1.maven.org/maven2 diff --git a/src/actions/menuActions.js b/src/actions/menuActions.js index 610d1d6..f50de9d 100644 --- a/src/actions/menuActions.js +++ b/src/actions/menuActions.js @@ -1,25 +1,25 @@ import * as types from './actionTypes'; export function menuopen() { - return { - type: types.MENUOPEN - }; + return { + type: types.MENUOPEN + }; } export function menuclose() { - return { - type: types.MENUCLOSE - }; + return { + type: types.MENUCLOSE + }; } export function main() { - return { - type: types.MAIN - }; + return { + type: types.MAIN + }; } export function help() { - return { - type: types.HELP - }; + return { + type: types.HELP + }; } diff --git a/src/components/help.js b/src/components/help.js index 85f67ba..7c59acf 100644 --- a/src/components/help.js +++ b/src/components/help.js @@ -5,20 +5,20 @@ const styles = StyleSheet.create({ }); export default class Help extends Component { - constructor(props) { - super(props); - } + constructor(props) { + super(props); + } - render() { - //const { counter } = this.props; + render() { + //const { counter } = this.props; - return ( - - This is a sample counter app. - Press Increase to add 1 to the value. - Press Decrease to subtract 1 from the value. - - ); - } + return ( + + This is a sample counter app. + Press Increase to add 1 to the value. + Press Decrease to subtract 1 from the value. + + ); + } } diff --git a/src/components/menu.js b/src/components/menu.js index 030e4e6..89c8fcd 100644 --- a/src/components/menu.js +++ b/src/components/menu.js @@ -11,19 +11,19 @@ const styles = StyleSheet.create({ }); export default class Menu extends Component { - constructor(props) { - super(props); - } + constructor(props) { + super(props); + } - render() { - const { main, help } = this.props; + render() { + const { main, help } = this.props; - return ( - - Calculator - Help - Link 4 - - ); - } + return ( + + Calculator + Help + Link 4 + + ); + } } diff --git a/src/components/resistor.js b/src/components/resistor.js index b13a2aa..0d2a1dd 100644 --- a/src/components/resistor.js +++ b/src/components/resistor.js @@ -78,7 +78,8 @@ class Resistor extends Component { - { + { console.log(this); Alert.alert( 'Clear resistor value?', @@ -93,7 +94,8 @@ class Resistor extends Component { {text: 'OK', onPress: clear}, ] ) - }} style={styles.clearbutton} activeOpacity={1} + }} + style={styles.clearbutton} activeOpacity={1} > Clear @@ -118,7 +120,7 @@ function mapStateToProps(state, ownProps) { } export default connect(mapStateToProps, - (dispatch) => ({ - actions: bindActionCreators(calcActions, dispatch) - }) + (dispatch) => ({ + actions: bindActionCreators(calcActions, dispatch) + }) )(Resistor); diff --git a/src/containers/app.js b/src/containers/app.js index 5e68058..2a34ad4 100644 --- a/src/containers/app.js +++ b/src/containers/app.js @@ -14,11 +14,11 @@ const reducer = combineReducers(reducers); const store = createStoreWithMiddleware(reducer); export default class App extends Component { - render() { - return ( - -