mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
refactor(icons): replace fa icons [EE-4459] (#7907)
refactor(icons): remove fontawesome EE-4459 refactor(icon) replace feather with lucide EE-4472
This commit is contained in:
parent
9dfac98a26
commit
d78b762f7b
498 changed files with 2102 additions and 2817 deletions
|
@ -1,7 +1,8 @@
|
|||
import clsx from 'clsx';
|
||||
import { Check, Copy } from 'lucide-react';
|
||||
|
||||
import { Button } from '@@/buttons';
|
||||
import { useCopy } from '@@/buttons/CopyButton/useCopy';
|
||||
import { Icon } from '@@/Icon';
|
||||
|
||||
import styles from './Code.module.css';
|
||||
|
||||
|
@ -19,12 +20,10 @@ export function Code({ children, showCopyButton }: Props) {
|
|||
|
||||
{showCopyButton && (
|
||||
<Button color="link" className={styles.copyButton} onClick={handleCopy}>
|
||||
<i
|
||||
className={clsx(
|
||||
'fa',
|
||||
copiedSuccessfully ? 'fa-check green-icon' : 'fa-copy '
|
||||
)}
|
||||
aria-hidden="true"
|
||||
<Icon
|
||||
icon={copiedSuccessfully ? Check : Copy}
|
||||
className="!ml-1"
|
||||
mode={copiedSuccessfully ? 'success' : undefined}
|
||||
/>
|
||||
</Button>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue