performance: replace tabler-icons-react with react-icons to reduce bundle size

This commit is contained in:
Elias Schneider
2022-10-14 11:59:40 +02:00
parent 247ce92744
commit d906d56b9f
11 changed files with 44 additions and 51 deletions

View File

@@ -1,6 +1,6 @@
import { ActionIcon, Table } from "@mantine/core";
import { Dispatch, SetStateAction } from "react";
import { Trash } from "tabler-icons-react";
import { TbTrash } from "react-icons/tb";;
import { FileUpload } from "../../types/File.type";
import { byteStringToHumanSizeString } from "../../utils/math/byteStringToHumanSizeString.util";
import UploadProgressIndicator from "./UploadProgressIndicator";
@@ -28,7 +28,7 @@ const FileList = ({
size={25}
onClick={() => remove(i)}
>
<Trash />
<TbTrash />
</ActionIcon>
) : (
<UploadProgressIndicator progress={file.uploadingProgress} />