0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-15 01:52:45 +00:00

Initial pass at UserPage filtering to/from URL

This commit is contained in:
G.Ambatte
2022-03-25 11:20:16 +13:00
parent 323ccf3b25
commit 1c641e3aff
3 changed files with 26 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ const UserPage = createClass({
return {
username : '',
brews : [],
query : ''
};
},
getInitialState : function() {
@@ -62,7 +63,7 @@ const UserPage = createClass({
},
render : function(){
return <ListPage brewCollection={this.state.brewCollection} navItems={this.navItems()}></ListPage>;
return <ListPage brewCollection={this.state.brewCollection} navItems={this.navItems()} query={this.props.query}></ListPage>;
}
});