Commit bb881d1c authored by Max Alekseenko's avatar Max Alekseenko

fix param default value

parent 8688b625
...@@ -12,10 +12,10 @@ export interface Props { ...@@ -12,10 +12,10 @@ export interface Props {
size?: number; size?: number;
type?: 'link'; type?: 'link';
icon?: IconName; icon?: IconName;
variant?: 'simple'; variant?: string;
} }
const CopyToClipboard = ({ text, className, isLoading, onClick, size = 5, type, icon, variant }: Props) => { const CopyToClipboard = ({ text, className, isLoading, onClick, size = 5, type, icon, variant = 'simple' }: Props) => {
const { hasCopied, onCopy } = useClipboard(text, 1000); const { hasCopied, onCopy } = useClipboard(text, 1000);
const [ copied, setCopied ] = useState(false); const [ copied, setCopied ] = useState(false);
// have to implement controlled tooltip because of the issue - https://github.com/chakra-ui/chakra-ui/issues/7107 // have to implement controlled tooltip because of the issue - https://github.com/chakra-ui/chakra-ui/issues/7107
......
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