@heroicons/react/solid#XCircleIcon TypeScript Examples

The following examples show how to use @heroicons/react/solid#XCircleIcon. 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: index.tsx    From interbtc-ui with Apache License 2.0 6 votes vote down vote up
VaultOption = ({ vault, error }: VaultOptionProps): JSX.Element => {
  const { t } = useTranslation();
  return vault ? (
    <div className={clsx('flex', 'items-center')}>
      {error ? (
        <XCircleIcon
          className={clsx(
            'flex-shrink-0',
            'w-4',
            'h-4',
            'mr-2',
            { 'text-interlayCinnabar': process.env.REACT_APP_RELAY_CHAIN_NAME === POLKADOT },
            { 'text-kintsugiThunderbird': process.env.REACT_APP_RELAY_CHAIN_NAME === KUSAMA }
          )}
        />
      ) : (
        <CheckCircleIcon className={clsx('flex-shrink-0', 'w-4', 'h-4', 'mr-2', 'text-interlayConifer-600')} />
      )}
      <SelectText className={clsx('w-44', 'font-bold')}>{shortAddress(vault[0].accountId.toString())}</SelectText>
      <SelectText className='w-16'>{vault[0].currencies.collateral.asToken.toString()}</SelectText>
      <SelectText>
        <strong>{vault[1].toHuman()}</strong> BTC
      </SelectText>
    </div>
  ) : (
    t('select_vault')
  );
}