2023-02-15 13:00:09 +01:00
|
|
|
import { NotificationProps } from '../../../typings';
|
2022-08-27 15:58:36 +02:00
|
|
|
import { debugData } from '../../../utils/debugData';
|
2022-08-27 15:40:41 +02:00
|
|
|
|
2023-01-01 14:31:11 +01:00
|
|
|
export const debugCustomNotification = () => {
|
2023-02-15 13:00:09 +01:00
|
|
|
debugData<NotificationProps>([
|
2022-08-27 15:40:41 +02:00
|
|
|
{
|
2023-01-11 20:38:58 +01:00
|
|
|
action: 'notify',
|
2022-08-27 15:40:41 +02:00
|
|
|
data: {
|
2023-01-01 14:31:11 +01:00
|
|
|
title: 'Success',
|
|
|
|
|
description: 'Notification description',
|
|
|
|
|
type: 'success',
|
2023-02-15 13:00:09 +01:00
|
|
|
id: 'pogchamp',
|
2023-05-10 16:25:30 +02:00
|
|
|
duration: 20000,
|
|
|
|
|
style: {
|
|
|
|
|
'.description': {
|
|
|
|
|
color: 'red',
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-01-01 14:31:11 +01:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
2023-02-15 13:00:09 +01:00
|
|
|
debugData<NotificationProps>([
|
2023-01-01 14:31:11 +01:00
|
|
|
{
|
2023-01-11 20:38:58 +01:00
|
|
|
action: 'notify',
|
2023-01-01 14:31:11 +01:00
|
|
|
data: {
|
|
|
|
|
title: 'Error',
|
|
|
|
|
description: 'Notification description',
|
|
|
|
|
type: 'error',
|
2025-07-26 16:07:52 +02:00
|
|
|
position: "bottom"
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
2023-02-15 13:00:09 +01:00
|
|
|
debugData<NotificationProps>([
|
2022-08-27 15:40:41 +02:00
|
|
|
{
|
2023-01-11 20:38:58 +01:00
|
|
|
action: 'notify',
|
2022-08-27 15:40:41 +02:00
|
|
|
data: {
|
2023-01-01 14:31:11 +01:00
|
|
|
title: 'Custom icon success',
|
|
|
|
|
description: 'Notification description',
|
|
|
|
|
type: 'success',
|
|
|
|
|
icon: 'microchip',
|
2024-04-12 23:15:57 +08:00
|
|
|
showDuration: false,
|
2022-08-27 15:40:41 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
};
|