Skip to content

Commit

Permalink
chore: remove unused prop
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt committed Dec 5, 2024
1 parent 8854490 commit fe21b71
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/evm/src/components/Chain/Chain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@ type Props = {
chainId: ChainId | 'BTC';
labelProps?: TextProps;
iconProps?: IconProps;
label?: boolean;
};

type InheritAttrs = Omit<FlexProps, keyof Props>;

type ChainProps = Props & InheritAttrs;

const Chain = ({ chainId, iconProps, labelProps, label = true, ...props }: ChainProps) => (
const Chain = ({ chainId, iconProps, labelProps, ...props }: ChainProps) => (
<StyledFlex alignItems='center' direction='row' gap='s' {...props}>
<ChainLogo chainId={chainId} {...iconProps} />
{label && (
<StyledSpan {...labelProps}>{chainId === 'BTC' ? 'Bitcoin' : getCapitalizedChainName(chainId)}</StyledSpan>
)}

<StyledSpan {...labelProps}>{chainId === 'BTC' ? 'Bitcoin' : getCapitalizedChainName(chainId)}</StyledSpan>
</StyledFlex>
);

Expand Down

0 comments on commit fe21b71

Please sign in to comment.