Skip to content

Commit

Permalink
add logged-in header back
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophv committed May 17, 2017
1 parent c2d439b commit 8ab3dcd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
23 changes: 14 additions & 9 deletions app/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,20 @@ export class Header extends Component {

return (
<div className={styles.header}>
<LoggedInAs
dropMenu={dropdown}
isUploadInProgress={this.props.uploadIsInProgress}
onChooseDevices={this.handleClickChooseDevices}
onClicked={this.props.sync.toggleDropdown.bind(this, this.props.dropdown)}
onLogout={this.props.async.doLogout}
user={allUsers[this.props.loggedInUser]}
isClinicAccount={this.props.isClinicAccount}
targetUsersForUpload={this.props.targetUsersForUpload} />
<div className={styles.headerRow}>
<div className={styles.smallLogoWrapper}>
<img className={styles.smallLogo} src={logo} />
</div>
<LoggedInAs
dropMenu={dropdown}
isUploadInProgress={this.props.uploadIsInProgress}
onChooseDevices={this.handleClickChooseDevices}
onClicked={this.props.sync.toggleDropdown.bind(this, this.props.dropdown)}
onLogout={this.props.async.doLogout}
user={allUsers[this.props.loggedInUser]}
isClinicAccount={this.props.isClinicAccount}
targetUsersForUpload={this.props.targetUsersForUpload} />
</div>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tidepool-uploader",
"productName": "tidepool-uploader",
"version": "0.310.0-alpha.3",
"version": "0.310.0-alpha.4",
"description": "Tidepool Project Universal Uploader",
"main": "./main.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tidepool-uploader",
"version": "0.310.0-alpha.3",
"version": "0.310.0-alpha.4",
"description": "Tidepool Project Universal Uploader",
"private": true,
"main": "main.js",
Expand Down
16 changes: 16 additions & 0 deletions styles/components/Header.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
margin: 0px auto;
}

.headerRow {
composes: flexRow from '../core/layout.module.less';
justify-content: space-between;
align-items: baseline;
}

.signup {
composes: flexRow from '../core/layout.module.less';
justify-content: flex-end;
Expand All @@ -38,12 +44,22 @@
height: 36px;
}

.smallLogoWrapper {
margin-top: 30px;
margin-bottom: 55px;
}

.smallLogo {
width: 230px;
}

.heroText {
composes: flexRow from '../core/layout.module.less';
composes: large from '../core/typography.module.less';
justify-content: center;
margin: 35px auto 50px auto;
}

.signupLink {
composes: invertLink from '../core/typography.module.less';
text-decoration: none;
Expand Down

0 comments on commit 8ab3dcd

Please sign in to comment.