diff --git a/src/builtins/SourceCode/index.tsx b/src/builtins/SourceCode/index.tsx index 3ff9e13..6f17f0a 100644 --- a/src/builtins/SourceCode/index.tsx +++ b/src/builtins/SourceCode/index.tsx @@ -1,11 +1,6 @@ -import { CheckOutlined, CopyOutlined } from '@ant-design/icons'; -import { Button, ConfigProvider, Tooltip } from 'antd'; -import copy from 'copy-to-clipboard'; import { FC } from 'react'; import { Highlighter } from '../../components/Highlighter'; -import { useCopied } from '../../hooks/useCopied'; -import { useStyles } from './style'; interface SourceCodeProps { lang: string; @@ -13,39 +8,7 @@ interface SourceCodeProps { } const SourceCode: FC = ({ children, lang }) => { - const { copied, setCopied } = useCopied(); - const { styles, theme } = useStyles(); - - return ( -
- - - 复制成功 - - ) : ( - '复制' - ) - } - > -
- ); + return {children}; }; export default SourceCode; diff --git a/src/components/GithubButton/index.tsx b/src/components/GithubButton/index.tsx index 480a464..896b362 100644 --- a/src/components/GithubButton/index.tsx +++ b/src/components/GithubButton/index.tsx @@ -9,7 +9,7 @@ const GithubButton: FC = () => { return ( repoUrl && ( - +