Use tabler icon

This commit is contained in:
Sebastien Dionne 2023-12-12 17:53:37 -05:00
parent 7953863b9d
commit c2c2ef6e2b

View File

@ -6,8 +6,7 @@ import { buildHarRequest } from 'utils/codegenerator/har';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
import { CopyToClipboard } from 'react-copy-to-clipboard'; import { CopyToClipboard } from 'react-copy-to-clipboard';
import toast from 'react-hot-toast'; import toast from 'react-hot-toast';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { IconCopy } from '@tabler/icons';
import { faCopy } from '@fortawesome/free-solid-svg-icons';
const CodeView = ({ language, item }) => { const CodeView = ({ language, item }) => {
const { storedTheme } = useTheme(); const { storedTheme } = useTheme();
@ -27,7 +26,7 @@ const CodeView = ({ language, item }) => {
<> <>
<div style={{ display: 'flex', justifyContent: 'flex-end' }}> <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
<CopyToClipboard text={snippet} onCopy={() => toast.success('Copied to clipboard!')}> <CopyToClipboard text={snippet} onCopy={() => toast.success('Copied to clipboard!')}>
<FontAwesomeIcon icon={faCopy} style={{ cursor: 'pointer' }} /> <IconCopy size={25} strokeWidth={1.5} />
</CopyToClipboard> </CopyToClipboard>
</div> </div>
<CodeEditor <CodeEditor