0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 21:52:43 +00:00

Fix regression with updated Pico-Router

This variable name changed with the v2.0.0 of Pico-Router and it wasn't changed here. This was causing every page to display a  `<div class="homePage page">` rather than the appropriate `editPage` or `sharePage`. It just wasn't immediately noticeable since `homePage` and `editPage` are almost identical. The problem is clearly visible on `sharePage` however.

`homebrew.jsx` was set to always render a defaultUrl of ` ` which creates a `<div class="homePage page">` by default, overwriting the expected `<div>` on for the current url.
This commit is contained in:
Trevor Buckner
2018-05-23 08:53:30 -04:00
committed by Rae2che5
parent eaab6de691
commit 31cbd9ef40

View File

@@ -82,7 +82,7 @@ const Homebrew = createClass({
},
render : function(){
return <div className='homebrew'>
<Router initialUrl={this.props.url}/>
<Router defaultUrl={this.props.url}/>
</div>;
}
});