Skip to content

Commit

Permalink
chore(version): 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Aug 21, 2024
1 parent 647dd3e commit 4c2014f
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cherry-studio",
"version": "0.5.9",
"version": "0.6.0",
"description": "A powerful AI assistant for producer.",
"main": "./out/main/index.js",
"author": "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/components/Icons/CopyIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC } from 'react'

const CopyIcon: FC = () => {
return <i className="iconfont icon-copy" />
const CopyIcon: FC<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>> = (props) => {
return <i {...props} className={`iconfont icon-copy ${props.className}`} />
}

export default CopyIcon
5 changes: 3 additions & 2 deletions src/renderer/src/pages/home/Markdown/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CheckOutlined, CopyOutlined } from '@ant-design/icons'
import { CheckOutlined } from '@ant-design/icons'
import CopyIcon from '@renderer/components/Icons/CopyIcon'
import { initMermaid } from '@renderer/init'
import { useTheme } from '@renderer/providers/ThemeProvider'
import { ThemeMode } from '@renderer/store/settings'
Expand Down Expand Up @@ -39,7 +40,7 @@ const CodeBlock: React.FC<CodeBlockProps> = ({ children, className, ...rest }) =
<div>
<CodeHeader>
<CodeLanguage>{'<' + match[1].toUpperCase() + '>'}</CodeLanguage>
{!copied && <CopyOutlined className="copy" onClick={onCopy} />}
{!copied && <CopyIcon className="copy" onClick={onCopy} />}
{copied && <CheckOutlined style={{ color: 'var(--color-primary)' }} />}
</CodeHeader>
<SyntaxHighlighter
Expand Down

0 comments on commit 4c2014f

Please sign in to comment.