notifications feathericons

This commit is contained in:
2023-02-19 18:29:09 +01:00
parent cb28767783
commit e765fed019
17 changed files with 80 additions and 125 deletions

View File

@ -7,8 +7,8 @@ import './Qr.css';
import './InputForm.css';
import useSWR from 'swr';
import { NumberInput, Stack, Checkbox, MantineProvider } from '@mantine/core';
import { showNotification } from '@mantine/notifications';
import {DndList, DndListProps, TDataItem} from './DndList';
import { notificationError, notificationSuccess } from '../services/Notifications';
export default function Qr()
@ -141,19 +141,12 @@ export default function Qr()
{
if(resQR.success)
{
showNotification(
{
message: 'Daten gesichert!'
});
notificationSuccess('Daten gesichert!');
mutate();
}
else if(!resQR.success && resQR.message)
{
showNotification(
{
message: resQR.message
});
notificationError(resQR.message);
}
})
.catch((err) => console.error(err));