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,19 +1,18 @@
import { showNotification } from "@mantine/notifications";
import { Check, X } from "tabler-icons-react";
import { TbCheck, TbX } from "react-icons/tb";
const error = (message: string) =>
showNotification({
icon: <X />,
icon: <TbX />,
color: "red",
radius: "md",
title: "Error",
message: message,
});
const success = (message: string) =>
showNotification({
icon: <Check />,
icon: <TbCheck />,
color: "green",
radius: "md",
title: "Success",