Skip to content

Commit

Permalink
Merge pull request #242 from adcpm/bookmark-list
Browse files Browse the repository at this point in the history
Bookmark list
  • Loading branch information
Fabien committed Jan 11, 2017
2 parents e3397df + 19786fe commit af72065
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/post/Feed/PostFeedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { FormattedMessage } from 'react-intl';
import BodyShort from '../BodyShort';
import PostActionButtons from '../PostActionButtons';
import Avatar from '../../widgets/Avatar';
import Icon from '../../widgets/Icon';
import PostModalLink from './../PostModalLink';
import './PostFeedList.scss';

Expand Down Expand Up @@ -34,6 +35,12 @@ const PostFeedList = ({
</div>
}
<div className="PostFeedList__cell PostFeedList__cell--body">
<a onClick={() => toggleBookmark(post.id)} className="PostFeedList__cell__bookmark">
<Icon
small
name={bookmarks[post.id] ? 'bookmark' : 'bookmark_border'}
/>
</a>
<h2>
<PostModalLink
post={post}
Expand Down
5 changes: 5 additions & 0 deletions src/post/Feed/PostFeedList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
.PostFeedList__cell {
vertical-align: middle;
overflow: hidden;
width: 100%;
}

.PostFeedList__cell--bottom {
Expand All @@ -66,3 +67,7 @@
padding-left: 0;
}
}

.PostFeedList__cell__bookmark {
float: right;
}

0 comments on commit af72065

Please sign in to comment.