Commit 18887dc0 authored by tom's avatar tom

rename Token to TokenSnippet

parent 0726ca30
...@@ -27,7 +27,7 @@ interface Props { ...@@ -27,7 +27,7 @@ interface Props {
className?: string; className?: string;
} }
const Token = ({ symbol, className }: Props) => { const TokenSnippet = ({ symbol, className }: Props) => {
const token = TOKENS[symbol as keyof typeof TOKENS]; const token = TOKENS[symbol as keyof typeof TOKENS];
const link = useLink(); const link = useLink();
...@@ -48,4 +48,4 @@ const Token = ({ symbol, className }: Props) => { ...@@ -48,4 +48,4 @@ const Token = ({ symbol, className }: Props) => {
); );
}; };
export default chakra(Token); export default chakra(TokenSnippet);
...@@ -4,7 +4,7 @@ import React from 'react'; ...@@ -4,7 +4,7 @@ import React from 'react';
import rightArrowIcon from 'icons/arrows/east.svg'; import rightArrowIcon from 'icons/arrows/east.svg';
import { space } from 'lib/html-entities'; import { space } from 'lib/html-entities';
import AddressLink from 'ui/shared/address/AddressLink'; import AddressLink from 'ui/shared/address/AddressLink';
import Token from 'ui/shared/Token'; import TokenSnippet from 'ui/shared/TokenSnippet';
interface Props { interface Props {
from: string; from: string;
...@@ -26,7 +26,7 @@ const TokenTransfer = ({ from, to, amount, usd, token }: Props) => { ...@@ -26,7 +26,7 @@ const TokenTransfer = ({ from, to, amount, usd, token }: Props) => {
<Text fontWeight={ 600 } as="span">{ amount }</Text>{ space } <Text fontWeight={ 600 } as="span">{ amount }</Text>{ space }
<Text fontWeight={ 400 } variant="secondary" as="span">(${ usd.toFixed(2) })</Text> <Text fontWeight={ 400 } variant="secondary" as="span">(${ usd.toFixed(2) })</Text>
</Text> </Text>
<Token symbol={ token }/> <TokenSnippet symbol={ token }/>
</Flex> </Flex>
); );
}; };
......
...@@ -17,7 +17,7 @@ import HashStringShortenDynamic from 'ui/shared/HashStringShortenDynamic'; ...@@ -17,7 +17,7 @@ import HashStringShortenDynamic from 'ui/shared/HashStringShortenDynamic';
import PrevNext from 'ui/shared/PrevNext'; import PrevNext from 'ui/shared/PrevNext';
import RawInputData from 'ui/shared/RawInputData'; import RawInputData from 'ui/shared/RawInputData';
import TextSeparator from 'ui/shared/TextSeparator'; import TextSeparator from 'ui/shared/TextSeparator';
import Token from 'ui/shared/Token'; import TokenSnippet from 'ui/shared/TokenSnippet';
import Utilization from 'ui/shared/Utilization'; import Utilization from 'ui/shared/Utilization';
import TokenTransfer from 'ui/tx/TokenTransfer'; import TokenTransfer from 'ui/tx/TokenTransfer';
import TxDecodedInputData from 'ui/tx/TxDecodedInputData'; import TxDecodedInputData from 'ui/tx/TxDecodedInputData';
...@@ -108,7 +108,7 @@ const TxDetails = () => { ...@@ -108,7 +108,7 @@ const TxDetails = () => {
<Icon as={ errorIcon } boxSize={ 4 } ml={ 2 } color="red.500" cursor="pointer"/> <Icon as={ errorIcon } boxSize={ 4 } ml={ 2 } color="red.500" cursor="pointer"/>
</chakra.span> </chakra.span>
</Tooltip> </Tooltip>
<Token symbol="USDT" ml={ 3 }/> <TokenSnippet symbol="USDT" ml={ 3 }/>
</DetailsInfoItem> </DetailsInfoItem>
<DetailsInfoItem <DetailsInfoItem
title="Token transferred" title="Token transferred"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment