Skip to content

Commit 866b0f1

Browse files
committed
Hide GitHub count from sidebar if no enterprise accounts
1 parent 268f6b8 commit 866b0f1

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

src/js/__tests__/components/__snapshots__/settings-modal.js.snap

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,7 @@ exports[`components/settings-modal.js should render itself & its children (open
149149
<span
150150
className="octicon octicon-sign-out"
151151
/>
152-
Logout
153-
</button>
154-
<button
155-
className="btn btn-secondary"
156-
onClick={[Function]}
157-
>
158-
Close
152+
Logout from all accounts
159153
</button>
160154
</div>
161155
</div>

src/js/components/logos/dark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class LogoWhite extends React.PureComponent {
99
render() {
1010
/* eslint-disable */
1111
return (
12-
<svg className={`logo ${this.props.className}`} onClick={() => this.props.onClick && this.props.onClick()} xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" viewBox="0 0 180.31 182.52">
12+
<svg className={`logo${this.props.className ? ' ' + this.props.className : ''}`} onClick={() => this.props.onClick && this.props.onClick()} xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" viewBox="0 0 180.31 182.52">
1313
<defs>
1414

1515
<linearGradient id="linear-dark-gradient" x1="300.53" y1="294.89" x2="130.22" y2="240.53" gradientUnits="userSpaceOnUse">

src/js/components/logos/white.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class LogoWhite extends React.PureComponent {
99
render() {
1010
/* eslint-disable */
1111
return (
12-
<svg className={`logo ${this.props.className}`} onClick={() => this.props.onClick && this.props.onClick()} xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" viewBox="0 0 180.31 182.52">
12+
<svg className={`logo${this.props.className ? ' ' + this.props.className : ''}`} onClick={() => this.props.onClick && this.props.onClick()} xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" viewBox="0 0 180.31 182.52">
1313
<defs>
1414

1515
<linearGradient id="linear-white-gradient" x1="300.53" y1="294.89" x2="130.22" y2="240.53" gradientUnits="userSpaceOnUse">

src/js/components/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class Sidebar extends React.Component {
109109
</ul>
110110
)}
111111

112-
{isGitHubLoggedIn && this._renderGitHubAccount()}
112+
{isGitHubLoggedIn && !this.props.enterpriseAccounts.isEmpty() && this._renderGitHubAccount()}
113113
{this._renderEnterpriseAccounts()}
114114

115115
<div className="footer">

0 commit comments

Comments
 (0)