diff --git a/src/components/ClickToCopyText/ClickToCopyText.css b/src/components/ClickToCopyText/ClickToCopyText.css deleted file mode 100644 index 6f966dc..0000000 --- a/src/components/ClickToCopyText/ClickToCopyText.css +++ /dev/null @@ -1,3 +0,0 @@ -.text-click-to-copy { - color: rgba(0, 0, 0, 0.65); -} diff --git a/src/components/ClickToCopyText/index.tsx b/src/components/ClickToCopyText/index.tsx index 7b06b33..bf4c3f7 100644 --- a/src/components/ClickToCopyText/index.tsx +++ b/src/components/ClickToCopyText/index.tsx @@ -2,16 +2,16 @@ * External modules */ import React, { useCallback, useState } from "react"; +import styled from "styled-components"; import { Button, Tooltip, } from "antd"; import copy from "copy-to-clipboard"; -/** - * Internal modules - */ -import "./ClickToCopyText.css"; +const Text = styled(Button)` + color: rgba(0, 0, 0, 0.65); +`; interface ClickToCopyTextProps { children: string; @@ -33,7 +33,7 @@ export const ClickToCopyText = (props: ClickToCopyTextProps) => { }, []); return ( - + {children} ); };