Removing pointer hover, adding proptypes

This commit is contained in:
okbel
2018-01-04 13:23:41 -03:00
parent e52793e918
commit 841398c6c1
3 changed files with 5 additions and 6 deletions
@@ -4,7 +4,7 @@ import {Button} from 'coral-ui';
import styles from './LoadMore.css';
import cn from 'classnames';
const LoadMore = ({loadMore, showLoadMore, className, ...rest}) =>
const LoadMore = ({loadMore, showLoadMore, className = '', ...rest}) =>
<div {...rest} className={cn(className, styles.loadMoreContainer)}>
{
showLoadMore && <Button
@@ -16,6 +16,7 @@ const LoadMore = ({loadMore, showLoadMore, className, ...rest}) =>
</div>;
LoadMore.propTypes = {
className: PropTypes.string,
loadMore: PropTypes.func.isRequired,
showLoadMore: PropTypes.bool.isRequired
};
@@ -15,7 +15,8 @@ const UserDetailCommentList = (props) => {
user,
comments: {
nodes,
hasNextPage}
hasNextPage
}
},
acceptComment,
rejectComment,
@@ -44,6 +45,7 @@ const UserDetailCommentList = (props) => {
/>
<span className={styles.selectedCommentsInfo}> {selectedCommentIds.length} comments selected</span>
</div>
)}
<div className={styles.toggleAll}>
@@ -254,10 +254,6 @@ th.header {
font-size: 1.1em;
}
th.header:hover {
cursor: pointer;
}
th.header:nth-child(2), th.header:nth-child(3) {
width: 100px;
}