diff --git a/src/components/PaginationLinks/NextPageIcon.js b/src/components/PaginationLinks/NextPageIcon.js deleted file mode 100644 index 47b49052..00000000 --- a/src/components/PaginationLinks/NextPageIcon.js +++ /dev/null @@ -1,33 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const NextPageIcon = props => { - const { className } = props; - - return ( - - - - ); -}; - -const { string } = PropTypes; - -NextPageIcon.defaultProps = { - className: null, -}; - -NextPageIcon.propTypes = { - className: string, -}; - -export default NextPageIcon; diff --git a/src/components/PaginationLinks/PaginationLinks.css b/src/components/PaginationLinks/PaginationLinks.css index f728c735..c77e068c 100644 --- a/src/components/PaginationLinks/PaginationLinks.css +++ b/src/components/PaginationLinks/PaginationLinks.css @@ -17,15 +17,6 @@ /* Reset tag sizing */ line-height: 0; font-size: 0; - - /* Color for svg icons */ - fill: var(--marketplaceColor); - stroke: var(--marketplaceColor); - - &:hover { - fill: var(--marketplaceColorDark); - stroke: var(--marketplaceColorDark); - } } .prev { @@ -37,6 +28,17 @@ padding-left: 33px; } +.arrowIcon { + /* Color for svg icons */ + fill: var(--marketplaceColor); + stroke: var(--marketplaceColor); + + &:hover { + fill: var(--marketplaceColorDark); + stroke: var(--marketplaceColorDark); + } +} + .disabled, .disabled:hover { fill: var(--matterColorAnti); diff --git a/src/components/PaginationLinks/PaginationLinks.js b/src/components/PaginationLinks/PaginationLinks.js index ddcb0f61..68c127ee 100644 --- a/src/components/PaginationLinks/PaginationLinks.js +++ b/src/components/PaginationLinks/PaginationLinks.js @@ -3,12 +3,10 @@ import PropTypes from 'prop-types'; import { injectIntl, intlShape } from 'react-intl'; import classNames from 'classnames'; import range from 'lodash/range'; -import { NamedLink } from '../../components'; +import { IconArrowHead, NamedLink } from '../../components'; import { stringify } from '../../util/urlHelpers'; import { propTypes } from '../../util/types'; -import NextPageIcon from './NextPageIcon'; -import PrevPageIcon from './PrevPageIcon'; import css from './PaginationLinks.css'; const { string, object } = PropTypes; @@ -77,13 +75,17 @@ export const PaginationLinksComponent = props => { to={{ search: stringify(prevSearchParams) }} title={intl.formatMessage({ id: 'PaginationLinks.previous' })} > - + ); const prevLinkDisabled = ( -
- +
+
); @@ -96,13 +98,17 @@ export const PaginationLinksComponent = props => { to={{ search: stringify(nextSearchParams) }} title={intl.formatMessage({ id: 'PaginationLinks.next' })} > - + ); const nextLinkDisabled = ( -
- +
+
); diff --git a/src/components/PaginationLinks/PrevPageIcon.js b/src/components/PaginationLinks/PrevPageIcon.js deleted file mode 100644 index 2bb4f0c0..00000000 --- a/src/components/PaginationLinks/PrevPageIcon.js +++ /dev/null @@ -1,33 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -const PrevPageIcon = props => { - const { className } = props; - - return ( - - - - ); -}; - -const { string } = PropTypes; - -PrevPageIcon.defaultProps = { - className: null, -}; - -PrevPageIcon.propTypes = { - className: string, -}; - -export default PrevPageIcon;