react-spinners#PulseLoader JavaScript Examples

The following examples show how to use react-spinners#PulseLoader. 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: SuspenseLoading.js    From lrc-staking-dapp with MIT License 6 votes vote down vote up
SuspenseLoading = React.memo(({ messages }) => (
  <div className="d-flex align-items-center flex-column vh-100 justify-content-center text-center py-3">
    <div className="d-flex align-items-center flex-column px-4">
      <PulseLoader color={theme.palette.primary.main} loading />
      <Typography className="text-muted font-size-xl text-center pt-3">
        {messages['Please wait while the application is loading']}
        <Typography component="span" className="font-size-lg d-block text-dark">
          {messages['If you have any issues please contact']}
          {' '}
          <a href="https://twitter.com/NolanVanmoortel" target="_blank" rel="noopener noreferrer">@NolanVanmoortel</a>
        </Typography>
      </Typography>
    </div>
  </div>
))
Example #2
Source File: WalletButton.js    From lrc-staking-dapp with MIT License 6 votes vote down vote up
WalletButton = React.memo(({
  name, img, color, isFake, onClick, isLoading,
}) => (
  <Button
    variant="outlined"
    className="p-0 m-2 h-100 w-100"
    style={{
      borderColor: color, color, cursor: isFake ? 'default' : 'pointer', opacity: isFake ? 0 : 1,
    }}
    onClick={onClick}
  >
    <div className="feature-box text-center m-4">
      <img
        src={img}
        className="w-50 mx-auto d-block img-fluid"
        alt={`${name} logo`}
      />
      <h3 className="font-size-lg font-weight-bold my-3">
        {isLoading ? (<PulseLoader size={12} color={color} loading />) : name}
      </h3>
    </div>
  </Button>
))