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

Commit

Permalink
Visual updates (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Feb 15, 2018
1 parent 1031479 commit 5ae5c60
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/containers/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Helmet from 'react-helmet'
import {Grid, Row, Col} from 'react-flexbox-grid'
import {Card, CardText, CardTitle, CardActions} from 'react-toolbox/lib/card'
import {List, ListItem} from 'react-toolbox/lib/list'
import Button from 'react-toolbox/lib/button'
import {Button, IconButton} from 'react-toolbox/lib/button'
import FontIcon from 'react-toolbox/lib/font_icon'
import Snackbar from 'react-toolbox/lib/snackbar'

Expand Down Expand Up @@ -97,7 +97,7 @@ export default class Home extends Component {

renderRemoveBtn (set, key) {
return (
<Button icon='visibility_off' label='' primary className={style.linkBtnFix} onClick={this.removeItem.bind(this, set, key)} />
<IconButton icon='visibility_off' accent onClick={this.removeItem.bind(this, set, key)} />
)
}

Expand Down
4 changes: 2 additions & 2 deletions src/containers/Messages/Messages.js
Original file line number Diff line number Diff line change
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' icon='favorite' onClick={this.handleUnlike.bind(this, item._id)} accent />
return <IconButton key='1' className={'loveRed'} icon='favorite' onClick={this.handleUnlike.bind(this, item._id)} />
} else {
return <IconButton key='1' icon='favorite_border' onClick={this.handleLike.bind(this, item._id)} accent />
return <IconButton key='1' className={'loveRed'} icon='favorite_border' onClick={this.handleLike.bind(this, item._id)} />
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/containers/Messages/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@
margin-left: 1em;
}
}

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

.loveRed {
color: #e30438 !important;
}

0 comments on commit 5ae5c60

Please sign in to comment.