forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(night-mode): Update indenting and change border color
- Loading branch information
1 parent
e126152
commit f262bfd
Showing
3 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 32 additions & 32 deletions
64
common/app/routes/settings/components/Locked-Settings.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
import React, {PropTypes} from 'react'; | ||
import {Button, Row, Col} from 'react-bootstrap'; | ||
import React, { PropTypes } from 'react'; | ||
import { Button, Row, Col } from 'react-bootstrap'; | ||
import classnames from 'classnames'; | ||
|
||
export default function LockSettings({isLocked, toggle}) { | ||
const className = classnames({ | ||
'positive-20': true, | ||
active: isLocked, | ||
'btn-toggle': true | ||
}); | ||
return ( | ||
<Row> | ||
<Col xs={ 9 }> | ||
<p className='large-p'> | ||
Make all of my solutions private | ||
<br /> | ||
(this disables your certificates) | ||
</p> | ||
</Col> | ||
<Col xs={ 3 }> | ||
<Button | ||
block={ true } | ||
bsSize='lg' | ||
bsStyle='primary' | ||
className={ className } | ||
onClick={ toggle } | ||
> | ||
{ isLocked ? 'On' : 'Off' } | ||
</Button> | ||
</Col> | ||
</Row> | ||
); | ||
export default function LockSettings({ isLocked, toggle }) { | ||
const className = classnames({ | ||
'positive-20': true, | ||
active: isLocked, | ||
'btn-toggle': true | ||
}); | ||
return ( | ||
<Row> | ||
<Col xs={ 9 }> | ||
<p className='large-p'> | ||
Make all of my solutions private | ||
<br /> | ||
(this disables your certificates) | ||
</p> | ||
</Col> | ||
<Col xs={ 3 }> | ||
<Button | ||
block={ true } | ||
bsSize='lg' | ||
bsStyle='primary' | ||
className={ className } | ||
onClick={ toggle } | ||
> | ||
{ isLocked ? 'On' : 'Off' } | ||
</Button> | ||
</Col> | ||
</Row> | ||
); | ||
} | ||
|
||
LockSettings.propTypes = { | ||
isLocked: PropTypes.bool, | ||
toggle: PropTypes.func.isRequired | ||
isLocked: PropTypes.bool, | ||
toggle: PropTypes.func.isRequired | ||
}; |