performance: replace tabler-icons-react with react-icons to reduce bundle size
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user