Commit 60a9e905 authored by isstuev's avatar isstuev

address-link

parent 8bfb04b2
import { HStack, Link } from '@chakra-ui/react'; import { HStack, Link } from '@chakra-ui/react';
import React from 'react'; import React from 'react';
import useBasePath from 'lib/hooks/useBasePath';
import AddressWithDots from './AddressWithDots'; import AddressWithDots from './AddressWithDots';
import CopyToClipboard from './CopyToClipboard'; import CopyToClipboard from './CopyToClipboard';
const FONT_WEIGHT = '600'; const FONT_WEIGHT = '600';
const AddressLinkWithTooltip = ({ address }: {address: string}) => { const AddressLinkWithTooltip = ({ address }: {address: string}) => {
const basePath = useBasePath();
const url = basePath + '/address/' + address + '/tokens#address-tabs';
return ( return (
<HStack spacing={ 2 } alignContent="center" overflow="hidden"> <HStack spacing={ 2 } alignContent="center" overflow="hidden">
<Link <Link
href="#" href={ url }
target="_blank"
overflow="hidden" overflow="hidden"
fontWeight={ FONT_WEIGHT } fontWeight={ FONT_WEIGHT }
lineHeight="24px" lineHeight="24px"
......
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