notifications feathericons
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user