one more function to remove

This commit is contained in:
Jeremy Kauffman 2016-04-09 20:03:23 -04:00
parent 3a6e1529d8
commit f7cc73c113

View file

@ -16,16 +16,11 @@ var App = React.createClass({
} }
}); });
}, },
setPage: function(page) {
this.setState({
viewingPage: page
});
},
render: function() { render: function() {
if (this.state.viewingPage == 'home') { if (this.state.viewingPage == 'home') {
var content = <HomePage setPage={this.setPage}/>; var content = <HomePage />;
} else if (this.state.viewingPage == 'settings') { } else if (this.state.viewingPage == 'settings') {
var content = <SettingsPage closeCallback={this.setPage.bind(this, 'home')} setPage={this.setPage} />; var content = <SettingsPage />;
} }
return ( return (
<div style={appStyles}> <div style={appStyles}>