Skip to content

Commit

Permalink
Minor changes to TitleBar (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
MakotoE authored Apr 16, 2019
1 parent 36a7d7b commit bb424d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/TitleBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class TitleBarComponent extends StoredComponent<Props, State> {
position: 'absolute',
zIndex: 1,
width: '100%',
height: '100%',
height: '90%',
backgroundColor: '#FFFFFF',
}}
hidden={!this.state.visible}
Expand All @@ -73,7 +73,7 @@ export class TitleBarComponent extends StoredComponent<Props, State> {
<br /><br />
<PrimaryButton
text={t('Continue')}
onClick={() => this.setState({visible: false})}
onClick={() => this.setState({visible: false, firstVisit: false})}
/>
</div>
</div>
Expand All @@ -83,7 +83,6 @@ export class TitleBarComponent extends StoredComponent<Props, State> {

public componentDidMount(): void {
this.setState(state => ({visible: state.firstVisit}));
this.setState({firstVisit: false});
}
}

Expand Down

0 comments on commit bb424d3

Please sign in to comment.