@material-ui/icons#NavigateBefore JavaScript Examples

The following examples show how to use @material-ui/icons#NavigateBefore. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Pager.js    From web-wallet with Apache License 2.0 6 votes vote down vote up
function Pager ({ currentPage, isLastPage, onClickNext, onClickBack }) {
  return (
    <div className={styles.Pager}>
      <span className={styles.number}>{`Page ${currentPage}`}</span>
      <div
        className={[
          styles.box,
          currentPage === 1 ? styles.disabled : ''
        ].join(' ')}
        onClick={onClickBack}
      >
        <NavigateBefore className={styles.icon} />
      </div>
      <div
        className={[
          styles.box,
          isLastPage ? styles.disabled : ''
        ].join(' ')}
        onClick={onClickNext}
      >
        <NavigateNext className={styles.icon} />
      </div>
    </div>
  );
}