mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Removing pointer hover, adding proptypes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user