Fix profile accordion error display

This commit is contained in:
ajnart
2024-05-10 20:02:57 +02:00
parent 6e2bd0ce11
commit 543bfc0835
5 changed files with 21 additions and 15 deletions

View File

@@ -2,16 +2,14 @@ import type { NotificationData } from "@mantine/notifications";
import { notifications } from "@mantine/notifications";
import { IconCheck, IconX } from "@tabler/icons-react";
type CommonNotificationProps = Pick<NotificationData, "title" | "message">;
export const showSuccessNotification = (props: CommonNotificationProps) =>
export const showSuccessNotification = (props: NotificationData) =>
notifications.show({
...props,
color: "teal",
icon: <IconCheck size={20} />,
});
export const showErrorNotification = (props: CommonNotificationProps) =>
export const showErrorNotification = (props: NotificationData) =>
notifications.show({
...props,
color: "red",