Commit 4955e0f3 authored by tom's avatar tom Committed by isstuev

link theme

parent 8ea01744
import type { ComponentStyleConfig } from '@chakra-ui/theme';
import { mode } from '@chakra-ui/theme-tools';
import type { SystemStyleFunction } from '@chakra-ui/theme-tools';
const variantPrimary: SystemStyleFunction = (props) => {
return {
color: mode('blue.600', 'blue.300')(props),
_hover: {
color: mode('blue.400', 'blue.200')(props),
},
}
}
const variantSecondary: SystemStyleFunction = (props) => {
return {
color: mode('gray.500', 'gray.500')(props),
_hover: {
color: mode('gray.600', 'gray.400')(props),
},
}
}
const variants = {
primary: variantPrimary,
secondary: variantSecondary,
}
const defaultProps = {
variant: 'primary',
}
const Link: ComponentStyleConfig = {
variants,
defaultProps,
}
export default Link;
import Button from './Button'; import Button from './Button';
import Modal from './Modal';
import Table from './Table';
import Form from './Form'; import Form from './Form';
import Input from './Input'; import Input from './Input';
import Tabs from './Tabs'; import Link from './Link';
import Modal from './Modal';
import Table from './Table';
import Tag from './Tag'; import Tag from './Tag';
import Tooltip from './Tooltip'; import Tooltip from './Tooltip';
const components = { const components = {
Button, Button,
Modal,
Table,
Input, Input,
Form, Form,
Tabs, Link,
Modal,
Table,
Tag, Tag,
Tooltip, Tooltip,
} }
......
...@@ -30,7 +30,7 @@ const NavFooter = () => { ...@@ -30,7 +30,7 @@ const NavFooter = () => {
<HStack> <HStack>
{ SOCIAL_LINKS.map(sl => { { SOCIAL_LINKS.map(sl => {
return ( return (
<Link href={ sl.link } key={ sl.link }> <Link href={ sl.link } key={ sl.link } variant="secondary">
<Icon as={ sl.icon } boxSize={ 5 }/> <Icon as={ sl.icon } boxSize={ 5 }/>
</Link> </Link>
) )
......
...@@ -33,7 +33,7 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => { ...@@ -33,7 +33,7 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
<HStack spacing={ 0 } fontSize="sm" h={ 6 }> <HStack spacing={ 0 } fontSize="sm" h={ 6 }>
<Icon as={ WalletIcon } marginRight="10px" w="16px" h="16px"/> <Icon as={ WalletIcon } marginRight="10px" w="16px" h="16px"/>
<Text>{ `Net worth:${ nbsp }` }</Text> <Text>{ `Net worth:${ nbsp }` }</Text>
<Link href="#" color="blue.500" _hover={{ color: 'blue.400' }}>{ `$${ item.totalUSD } USD` }</Link> <Link href="#">{ `$${ item.totalUSD } USD` }</Link>
</HStack> </HStack>
) } ) }
</VStack> </VStack>
......
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