@material-ui/icons#KeyboardArrowRight TypeScript Examples

The following examples show how to use @material-ui/icons#KeyboardArrowRight. 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: TablePaginationActions.tsx    From crossfeed with Creative Commons Zero v1.0 Universal 5 votes vote down vote up
TablePaginationActions = (props: Props) => {
  const { count, page, rowsPerPage, onChangePage } = props;
  const classes = useStyles();

  const handleFirstPageButtonClick = (
    event: React.MouseEvent<HTMLButtonElement>
  ) => {
    onChangePage(event, 0);
  };

  const handleBackButtonClick = (
    event: React.MouseEvent<HTMLButtonElement>
  ) => {
    onChangePage(event, page - 1);
  };

  const handleNextButtonClick = (
    event: React.MouseEvent<HTMLButtonElement>
  ) => {
    onChangePage(event, page + 1);
  };

  const handleLastPageButtonClick = (
    event: React.MouseEvent<HTMLButtonElement>
  ) => {
    onChangePage(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
  };

  return (
    <div className={classes.root}>
      <IconButton
        onClick={handleFirstPageButtonClick}
        disabled={page === 0}
        aria-label="first page"
      >
        <FirstPageIcon />
      </IconButton>
      <IconButton
        onClick={handleBackButtonClick}
        disabled={page === 0}
        aria-label="previous page"
      >
        <KeyboardArrowLeft />
      </IconButton>
      <IconButton
        onClick={handleNextButtonClick}
        disabled={page >= Math.ceil(count / rowsPerPage) - 1}
        aria-label="next page"
      >
        <KeyboardArrowRight />
      </IconButton>
      <IconButton
        onClick={handleLastPageButtonClick}
        disabled={page >= Math.ceil(count / rowsPerPage) - 1}
        aria-label="last page"
      >
        <LastPageIcon />
      </IconButton>
    </div>
  );
}
Example #2
Source File: Content.tsx    From anchor-web-app with Apache License 2.0 4 votes vote down vote up
ContentBase = (props: ContentProps) => {
  const {
    className,
    walletAddress,
    connection,
    onClose,
    onDisconnectWallet,
    onSend,
    onBuyUST,
  } = props;

  const { availablePost } = useAccount();

  const { network } = useNetwork();

  const viewOnTerraFinder = useCallback(() => {
    window.open(getAccountUrl(network.chainID, walletAddress), '_blank');
  }, [network.chainID, walletAddress]);

  return (
    <WalletContent
      className={className}
      walletAddress={walletAddress}
      connectionName={connection.name}
      connectionIcon={connection.icon}
      readonly={connection.type === ConnectType.READONLY}
      onDisconnectWallet={onDisconnectWallet}
    >
      <>
        <TokenList onClose={onClose} onBuyUST={onBuyUST} />
        {availablePost && (
          <>
            <div className="bridge">
              <div>
                <Tooltip
                  title="Transfer Terra assets from Ethereum"
                  placement="top"
                >
                  <FlatButton
                    component="a"
                    href="https://bridge.terra.money/"
                    target="_blank"
                    rel="noreferrer"
                  >
                    <img src="/assets/bridge.png" alt="Terra Bridge" />
                  </FlatButton>
                </Tooltip>
                <FlatButton
                  component="a"
                  href="https://docs.anchorprotocol.com/user-guide/interchain-transfers"
                  target="_blank"
                  rel="noreferrer"
                >
                  Docs <Launch />
                </FlatButton>
              </div>
            </div>
            <div className="send">
              <FlatButton onClick={onSend}>SEND</FlatButton>
            </div>
            <div className="outlink">
              <button onClick={viewOnTerraFinder}>
                View on Terra Finder{' '}
                <i>
                  <KeyboardArrowRight />
                </i>
              </button>
              {process.env.NODE_ENV === 'development' && (
                <a
                  href="https://faucet.terra.money/"
                  target="_blank"
                  rel="noreferrer"
                >
                  Go to Faucet{' '}
                  <i>
                    <KeyboardArrowRight />
                  </i>
                </a>
              )}
            </div>
          </>
        )}
      </>
    </WalletContent>
  );
}