react-icons/md#MdChatBubble JavaScript Examples
The following examples show how to use
react-icons/md#MdChatBubble.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Post.js From devagram with GNU General Public License v3.0 | 6 votes |
Post = ({ post }) => {
const [open, setOpen] = useState(false);
return (
<Fragment>
{open && <ShowPost post={post} close={() => setOpen(false)} />}
<div className={classes.post__container} onClick={() => setOpen(!open)}>
<div className={classes.post} style={{ height: "100%", width: "100%" }}>
<img src={post.photoUrl} alt="feed__post" />
</div>
<div className={classes.post__overlay}>
<span style={{ pointerEvents: "none" }}>
<MdFavorite size="1.5em" color="white" />
<span style={{ color: "white" }}>{post.likes}</span>
</span>
<span style={{ pointerEvents: "none" }}>
<MdChatBubble size="1.5em" color="white" />
<span style={{ color: "white" }}>{post.comments}</span>
</span>
</div>
</div>
</Fragment>
);
}
Example #2
Source File: Posts.js From devagram with GNU General Public License v3.0 | 6 votes |
Posts = ({ photoUrl, likes, comments }) => {
return (
<div className="post-container">
<div className="post">
<Link
to="/feeds"
style={{
backgroundImage: `url(${photoUrl})`,
}}
className="post-image"
></Link>
<div className="post-overlay">
<span>
<MdFavorite />
{likes}
</span>
<span>
<MdChatBubble />
{comments}
</span>
</div>
</div>
</div>
);
}