Skip to content

Commit

Permalink
feat: added poison microblock icon
Browse files Browse the repository at this point in the history
  • Loading branch information
shamim-io authored and He1DAr committed Sep 20, 2023
1 parent dc231ae commit d8edfcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
8 changes: 8 additions & 0 deletions src/app/common/components/TxIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { useColorMode } from '@chakra-ui/react';
import React, { FC } from 'react';
import { IconType } from 'react-icons';
import { BsCodeSlash } from 'react-icons/bs';
import { TbBrandCoinbase } from 'react-icons/tb';
import { RxCube } from 'react-icons/rx';

import { Transaction } from '@stacks/stacks-blockchain-api-types';
import { TransactionType } from '@stacks/stacks-blockchain-api-types/generated';
Expand All @@ -22,6 +24,12 @@ export const getTxTypeIcon = (txType: Transaction['tx_type']): IconType => {
case 'contract_call':
return FunctionIcon;

case 'coinbase':
return TbBrandCoinbase;

case 'poison_microblock':
return RxCube;

default:
return StxIcon;
}
Expand Down
26 changes: 0 additions & 26 deletions src/ui/icons/CoinbaseIcon.tsx

This file was deleted.

0 comments on commit d8edfcc

Please sign in to comment.