1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +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,4 @@
import { History } from 'lucide-react';
import { useStore } from 'zustand';
import { NomadEvent } from '@/react/nomad/types';
@ -33,7 +34,7 @@ export function EventsDatatable({ data, isLoading }: EventsDatatableProps) {
onSortByChange={settings.setSortBy}
searchValue={search}
onSearchChange={setSearch}
titleIcon="fa-history"
titleIcon={History}
title="Events"
totalCount={data.length}
getRowId={(row) => `${row.Date}-${row.Message}-${row.Type}`}

View file

@ -1,5 +1,5 @@
import { useStore } from 'zustand';
import { Clock } from 'react-feather';
import { Clock } from 'lucide-react';
import { Job } from '@/react/nomad/types';

View file

@ -1,4 +1,5 @@
import { CellProps, Column } from 'react-table';
import { Clock, FileText } from 'lucide-react';
import { Task } from '@/react/nomad/types';
@ -34,12 +35,12 @@ export function ActionsCell({ row }: CellProps<Task>) {
title="Events"
className="space-right"
>
<Icon icon="clock" feather className="space-right icon" />
<Icon icon={Clock} className="space-right" />
</Link>
{/* logs */}
<Link to="nomad.logs" params={params} title="Logs">
<Icon icon="file-text" feather className="space-right icon" />
<Icon icon={FileText} className="space-right" />
</Link>
</div>
);

View file

@ -1,4 +1,5 @@
import { useMutation } from 'react-query';
import { Trash2 } from 'lucide-react';
import { useEnvironmentId } from '@/react/hooks/useEnvironmentId';
import { Job } from '@/react/nomad/types';
@ -25,8 +26,8 @@ export function JobActions({ selectedItems, refreshData }: Props) {
disabled={selectedItems.length < 1 || mutation.isLoading}
color="danger"
onClick={handleDeleteClicked}
icon={Trash2}
>
<i className="fa fa-trash-alt space-right" aria-hidden="true" />
Remove
</LoadingButton>
);

View file

@ -1,5 +1,5 @@
import { CellProps, Column } from 'react-table';
import { Clock } from 'react-feather';
import { Clock } from 'lucide-react';
import { Job } from '@/react/nomad/types';
@ -19,7 +19,7 @@ export function ActionsCell({ row }: CellProps<Job>) {
return (
// eslint-disable-next-line react/jsx-props-no-spreading
<div className="text-center" {...row.getToggleRowExpandedProps()}>
<Clock className="feather" />
<Clock className="lucide" />
</div>
);
}