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,5 +1,5 @@
import { RingProgress } from "@mantine/core";
import { CircleCheck, CircleX } from "tabler-icons-react";
import { TbCircleCheck, TbCircleX } from "react-icons/tb";;
const UploadProgressIndicator = ({ progress }: { progress: number }) => {
if (progress > 0 && progress < 100) {
@@ -11,9 +11,9 @@ const UploadProgressIndicator = ({ progress }: { progress: number }) => {
/>
);
} else if (progress == 100) {
return <CircleCheck color="green" size={22} />;
return <TbCircleCheck color="green" size={22} />;
} else {
return <CircleX color="red" size={22} />;
return <TbCircleX color="red" size={22} />;
}
};