Commit 0f3afd0f authored by tom's avatar tom

add deprecated doc comment

parent 8eaefde7
...@@ -19,6 +19,9 @@ interface Props { ...@@ -19,6 +19,9 @@ interface Props {
maxW: StyleProps['maxW']; maxW: StyleProps['maxW'];
} }
/**
* @deprecated use `ui/shared/entities/token/**` instead
*/
const TokenSnippet = ({ data, className, logoSize = 6, isDisabled, hideSymbol, hideIcon, isLoading, maxW }: Props) => { const TokenSnippet = ({ data, className, logoSize = 6, isDisabled, hideSymbol, hideIcon, isLoading, maxW }: Props) => {
const withSymbol = data && data.symbol && !hideSymbol; const withSymbol = data && data.symbol && !hideSymbol;
......
...@@ -5,6 +5,9 @@ type Props = { ...@@ -5,6 +5,9 @@ type Props = {
className?: string; className?: string;
} }
/**
* @deprecated use `ui/shared/entities/**` instead
*/
const AddressContractIcon = ({ className }: Props) => { const AddressContractIcon = ({ className }: Props) => {
const bgColor = useColorModeValue('gray.200', 'gray.600'); const bgColor = useColorModeValue('gray.200', 'gray.600');
const color = useColorModeValue('gray.400', 'gray.200'); const color = useColorModeValue('gray.400', 'gray.200');
......
...@@ -12,6 +12,9 @@ type Props = { ...@@ -12,6 +12,9 @@ type Props = {
isLoading?: boolean; isLoading?: boolean;
} }
/**
* @deprecated use `ui/shared/entities/**` instead
*/
const AddressIcon = ({ address, className, isLoading }: Props) => { const AddressIcon = ({ address, className, isLoading }: Props) => {
if (isLoading) { if (isLoading) {
return <Skeleton boxSize={ 6 } className={ className } borderRadius="full" flexShrink={ 0 }/>; return <Skeleton boxSize={ 6 } className={ className } borderRadius="full" flexShrink={ 0 }/>;
......
...@@ -36,6 +36,9 @@ type AddressTokenProps = { ...@@ -36,6 +36,9 @@ type AddressTokenProps = {
type Props = CommonProps & (AddressTokenTxProps | AddressTokenProps); type Props = CommonProps & (AddressTokenTxProps | AddressTokenProps);
/**
* @deprecated use `ui/shared/entities/**` instead
*/
const AddressLink = (props: Props) => { const AddressLink = (props: Props) => {
const { alias, type, className, truncation = 'dynamic', hash, fontWeight, target = '_self', isDisabled, isLoading } = props; const { alias, type, className, truncation = 'dynamic', hash, fontWeight, target = '_self', isDisabled, isLoading } = props;
const isMobile = useIsMobile(); const isMobile = useIsMobile();
......
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