mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-22 23:02:40 +01:00
Use tabler icon
This commit is contained in:
parent
7953863b9d
commit
c2c2ef6e2b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user