File tree Expand file tree Collapse file tree 6 files changed +5
-16
lines changed Expand file tree Collapse file tree 6 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -136,13 +136,6 @@ describe('components/settings-modal.js', () => {
136
136
expect ( props . toggleSettingsModal ) . toHaveBeenCalledTimes ( 1 ) ;
137
137
} ) ;
138
138
139
- it ( 'should close the modal pressing the close button' , ( ) => {
140
- const wrapper = shallow ( < SettingsModal { ...props } /> ) ;
141
- expect ( wrapper ) . toBeDefined ( ) ;
142
- wrapper . find ( '.btn-secondary' ) . simulate ( 'click' ) ;
143
- expect ( props . toggleSettingsModal ) . toHaveBeenCalledTimes ( 1 ) ;
144
- } ) ;
145
-
146
139
it ( 'should toggle the showOnlyParticipating checbox' , ( ) => {
147
140
const wrapper = shallow ( < SettingsModal { ...props } /> ) ;
148
141
expect ( wrapper ) . toBeDefined ( ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default class LogoWhite extends React.PureComponent {
9
9
render ( ) {
10
10
/* eslint-disable */
11
11
return (
12
- < svg className = " logo" 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 } ` } 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" >
13
13
< defs >
14
14
15
15
< linearGradient id = "linear-dark-gradient" x1 = "300.53" y1 = "294.89" x2 = "130.22" y2 = "240.53" gradientUnits = "userSpaceOnUse" >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default class LogoWhite extends React.PureComponent {
9
9
render ( ) {
10
10
/* eslint-disable */
11
11
return (
12
- < svg className = " logo" 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 } ` } 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" >
13
13
< defs >
14
14
15
15
< linearGradient id = "linear-white-gradient" x1 = "300.53" y1 = "294.89" x2 = "130.22" y2 = "240.53" gradientUnits = "userSpaceOnUse" >
Original file line number Diff line number Diff line change @@ -130,11 +130,7 @@ export class SettingsModal extends React.Component {
130
130
131
131
< div className = "modal-footer" >
132
132
< button className = "btn btn-outline-danger" onClick = { ( ) => this . logout ( ) } >
133
- < span className = "octicon octicon-sign-out" /> Logout
134
- </ button >
135
-
136
- < button className = "btn btn-secondary" onClick = { ( ) => this . props . toggleSettingsModal ( ) } >
137
- Close
133
+ < span className = "octicon octicon-sign-out" /> Logout from all accounts
138
134
</ button >
139
135
</ div >
140
136
</ div >
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export class Sidebar extends React.Component {
68
68
< div
69
69
key = { idx }
70
70
title = { account . get ( 'hostname' ) }
71
- className = { `badge-account${ ( enterpriseAccounts . size === idx + 1 ) && ' last' } ` }
71
+ className = { `badge-account${ ( enterpriseAccounts . size === idx + 1 ) ? ' last' : ' '} ` }
72
72
>
73
73
< div className = "mr-auto name" > { accountDomain } </ div >
74
74
< div > { notificationsCount === 0 ? < span className = "octicon octicon-check" /> : notificationsCount } </ div >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class LoginPage extends React.Component {
23
23
24
24
return (
25
25
< div className = "container-fluid main-container login" >
26
- < LogoDark />
26
+ < LogoDark className = "mt-5" />
27
27
28
28
< div className = "desc" > GitHub Notifications< br /> in your menu bar.</ div >
29
29
< button
You can’t perform that action at this time.
0 commit comments