0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-20 03:12:44 +00:00

Initial code pass to not display "Source" and "Get PDF" NavBar buttons on the /changelog page.

This commit is contained in:
Sean Robertson
2021-07-28 15:25:17 +12:00
parent 3948e17da2
commit caf151a0dd
2 changed files with 21 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ const Homebrew = createClass({
<Route path='/user/:username' component={(routeProps)=><UserPage username={routeProps.match.params.username} brews={this.props.brews} />}/>
<Route path='/print/:id' component={(routeProps)=><PrintPage brew={this.props.brew} query={queryString.parse(routeProps.location.search)} /> } />
<Route path='/print' exact component={(routeProps)=><PrintPage query={queryString.parse(routeProps.location.search)} /> } />
<Route path='/changelog' exact component={()=><SharePage brew={{ title: 'Changelog', text: this.props.changelog }} />}/>
<Route path='/changelog' exact component={()=><SharePage brew={{ title: 'Changelog', text: this.props.changelog }} showSource=false showPrint=false />}/>
<Route path='/' component={()=><HomePage welcomeText={this.props.welcomeText}/>}/>
</Switch>
</div>