Skip to content

Commit

Permalink
Don't display top collection buttons when logged out (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNisnevich committed Jun 27, 2019
1 parent b35d23b commit 63a1185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/containers/Collection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ export class Collection extends React.Component<CollectionProps, CollectionState
public getChildContext = () => ({muiTheme: getMuiTheme(baseTheme)});

public render(): JSX.Element {
const { exportedJson, history, onImportCards } = this.props;
const { exportedJson, history, loggedIn, onImportCards } = this.props;

return (
<div>
<Helmet title="Collection" />
<div style={{ display: 'flex' }}>
<Title text="Collection" />
<div style={{ marginLeft: 30, marginTop: 12 }}>
{this.renderButtons(true)}
{loggedIn && this.renderButtons(true)}
</div>
</div>

Expand Down

0 comments on commit 63a1185

Please sign in to comment.