mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* move charts to toolkit * refactor imports * fix tests * change the behavior of the color mode hook and add the noWatermark prop * fix gas tracker test and fix toolkit build
24 lines
563 B
TypeScript
24 lines
563 B
TypeScript
import type { IconProps } from '@chakra-ui/react';
|
|
import { Icon } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import LogoIcon from 'icons/networks/logo-placeholder.svg';
|
|
|
|
export const ChartWatermark = React.memo((props: IconProps) => {
|
|
return (
|
|
<Icon
|
|
position="absolute"
|
|
opacity={ 0.1 }
|
|
top="50%"
|
|
left="50%"
|
|
transform="translate(-50%, -50%)"
|
|
pointerEvents="none"
|
|
viewBox="0 0 114 20"
|
|
color={{ _light: 'link.primary', _dark: 'white' }}
|
|
{ ...props }
|
|
>
|
|
<LogoIcon/>
|
|
</Icon>
|
|
);
|
|
});
|