one more function to remove
This commit is contained in:
parent
3a6e1529d8
commit
f7cc73c113
1 changed files with 2 additions and 7 deletions
|
@ -16,16 +16,11 @@ var App = React.createClass({
|
|||
}
|
||||
});
|
||||
},
|
||||
setPage: function(page) {
|
||||
this.setState({
|
||||
viewingPage: page
|
||||
});
|
||||
},
|
||||
render: function() {
|
||||
if (this.state.viewingPage == 'home') {
|
||||
var content = <HomePage setPage={this.setPage}/>;
|
||||
var content = <HomePage />;
|
||||
} else if (this.state.viewingPage == 'settings') {
|
||||
var content = <SettingsPage closeCallback={this.setPage.bind(this, 'home')} setPage={this.setPage} />;
|
||||
var content = <SettingsPage />;
|
||||
}
|
||||
return (
|
||||
<div style={appStyles}>
|
||||
|
|
Loading…
Reference in a new issue