Skip to content

Commit 140faa6

Browse files
Asaad MahmoodAsaad Mahmood
authored andcommitted
Fixing style guide stuff in post_list
1 parent 9699401 commit 140faa6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

web/react/components/post_list.jsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ module.exports = React.createClass({
4444
utils.changeCss('.mention-link', 'color: ' + user.props.theme+';');
4545
utils.changeCss('@media(max-width: 768px){.search-bar__container', 'background: ' + user.props.theme+';}');
4646
}
47-
if (user.props.theme != "#000000" && user.props.theme != "#585858"){
47+
if (user.props.theme != '#000000' && user.props.theme != '#585858') {
4848
utils.changeCss('.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus', 'background: ' + utils.changeColor(user.props.theme, -10) +';');
4949
utils.changeCss('a.theme', 'color:'+user.props.theme+'; fill:'+user.props.theme+'!important;');
50-
}
51-
else if (user.props.theme == "#000000"){
50+
} else if (user.props.theme == '#000000') {
5251
utils.changeCss('.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus', 'background: ' + utils.changeColor(user.props.theme, +50) +';');
5352
$('.team__header').addClass('theme--black');
54-
}
55-
else if (user.props.theme == "#585858"){
53+
} else if (user.props.theme == '#585858') {
5654
utils.changeCss('.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus', 'background: ' + utils.changeColor(user.props.theme, +10) +';');
5755
$('.team__header').addClass('theme--gray');
5856
}

0 commit comments

Comments
 (0)