1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +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:
Ali 2022-11-28 15:00:28 +13:00 committed by GitHub
parent 9dfac98a26
commit d78b762f7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
498 changed files with 2102 additions and 2817 deletions

View file

@ -1,3 +1,5 @@
import { Server, Trash2 } from 'lucide-react';
import { Authorized } from '@/react/hooks/useUser';
import { EnvironmentId } from '@/react/portainer/environments/types';
import { Icon } from '@/react/components/Icon';
@ -39,7 +41,7 @@ export function NetworkContainersTable({
return (
<TableContainer>
<TableTitle label="Containers in network" icon="server" featherIcon />
<TableTitle label="Containers in network" icon={Server} />
<Table className="nopadding">
<DetailsTable
headers={tableHeaders}
@ -78,11 +80,7 @@ export function NetworkContainersTable({
}
}}
>
<Icon
icon="trash-2"
feather
class-name="icon-secondary icon-md"
/>
<Icon icon={Trash2} class-name="icon-secondary icon-md" />
Leave Network
</Button>
</Authorized>

View file

@ -1,4 +1,5 @@
import { Fragment } from 'react';
import { Share2, Trash2 } from 'lucide-react';
import DockerNetworkHelper from '@/docker/helpers/networkHelper';
import { Authorized } from '@/react/hooks/useUser';
@ -30,7 +31,7 @@ export function NetworkDetailsTable({
return (
<TableContainer>
<TableTitle label="Network details" icon="share-2" featherIcon />
<TableTitle label="Network details" icon={Share2} />
<Table className="nopadding">
<DetailsTable dataCy="networkDetails-detailsTable">
{/* networkRowContent */}
@ -46,8 +47,7 @@ export function NetworkDetailsTable({
onClick={() => onRemoveNetworkClicked()}
>
<Icon
icon="trash-2"
feather
icon={Trash2}
className="space-right"
aria-hidden="true"
/>

View file

@ -1,3 +1,5 @@
import { Share2 } from 'lucide-react';
import { Table, TableContainer, TableTitle } from '@@/datatables';
import { DetailsTable } from '@@/DetailsTable';
@ -16,7 +18,7 @@ export function NetworkOptionsTable({ options }: Props) {
return (
<TableContainer>
<TableTitle label="Network options" icon="share-2" featherIcon />
<TableTitle label="Network options" icon={Share2} />
<Table className="nopadding">
<DetailsTable dataCy="networkDetails-networkOptionsTable">
{networkEntries.map(([key, value]) => (