Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active October 3, 2018 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/6d7e5c770cfb328236fdf02bcf5af77f to your computer and use it in GitHub Desktop.
Save productioncoder/6d7e5c770cfb328236fdf02bcf5af77f to your computer and use it in GitHub Desktop.
CommentsHeader
import React from 'react';
import {Button, Icon} from "semantic-ui-react";
import './CommentsHeader.scss';
export function CommentsHeader(props) {
return (
<div className='comments-header'>
<h4>{props.amountComments} Comments</h4>
<Button basic compact icon labelPosition='left'>
<Icon name='align left' />
Sort by
</Button>
</div>
);
}
.comments-header {
h4 {
display: inline-block;
margin-right: 16px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment