Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
Changes colors for likes (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Feb 15, 2018
1 parent 5ae5c60 commit d9930f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/containers/Messages/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {Button, IconButton} from 'react-toolbox/lib/button'
import Input from 'react-toolbox/lib/input'
import {Row, Col} from 'react-flexbox-grid'
import ReactMarkdown from 'react-markdown'
import style from './style'
import style from './style.css'
import moment from 'moment'
import 'moment/locale/nb.js'
import pick from 'object.pick'
Expand Down Expand Up @@ -226,9 +226,9 @@ export default class Messages extends Component {
const {user} = this.props
const like = item.likes.find((item) => item === user.userId)
if (like) {
return <IconButton key='1' className={'loveRed'} icon='favorite' onClick={this.handleUnlike.bind(this, item._id)} />
return <IconButton key='1' className={style.loveRed} icon='favorite' onClick={this.handleUnlike.bind(this, item._id)} />
} else {
return <IconButton key='1' className={'loveRed'} icon='favorite_border' onClick={this.handleLike.bind(this, item._id)} />
return <IconButton key='1' className={style.loveRed} icon='favorite_border' onClick={this.handleLike.bind(this, item._id)} />
}
}

Expand Down
4 changes: 0 additions & 4 deletions src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,3 @@
font-size: calc(1.4 * var(--unit));
color: #999;
}

.loveRed {
color: #e30438 !important;
}

0 comments on commit d9930f8

Please sign in to comment.