Change anchor to button element (#3321)
Fix warning for ESLint (jsx-a11y/href-no-hash).
This commit is contained in:
parent
2531c5953b
commit
4b11675bdc
4 changed files with 43 additions and 22 deletions
|
@ -3,9 +3,9 @@ import { FormattedMessage } from 'react-intl';
|
|||
import PropTypes from 'prop-types';
|
||||
|
||||
const LoadMore = ({ onClick }) => (
|
||||
<a href="#" className='load-more' role='button' onClick={onClick}>
|
||||
<button className='load-more' onClick={onClick}>
|
||||
<FormattedMessage id='status.load_more' defaultMessage='Load more' />
|
||||
</a>
|
||||
</button>
|
||||
);
|
||||
|
||||
LoadMore.propTypes = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue