0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-17 14:32:41 +00:00

got the changelog page working, yayyyyyyyyyy

This commit is contained in:
Scott
2016-02-19 20:14:28 -05:00
parent ac8579ccc9
commit 8d61a21fa7
8 changed files with 54 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ var Homebrew = React.createClass({
return {
url : "",
welcomeText : "",
changelog : "",
brew : {
text : "",
shareId : null,
@@ -28,9 +29,13 @@ var Homebrew = React.createClass({
'/homebrew/edit/:id' : (args) => {
return <EditPage id={args.id} entry={this.props.brew} />
},
'/homebrew/share/:id' : (args) => {
return <SharePage id={args.id} entry={this.props.brew} />
},
'/homebrew/changelog' : (args) => {
return <SharePage entry={{text : this.props.changelog}} />
},
'/homebrew*' : <HomePage welcomeText={this.props.welcomeText} />,
});
},