(
payload: NewNotification,
{ timer = 5000 }: NotifyOptionalProps = {},
)
| 49 | client.setQueryData(IN_APP_NOTIFICATION_KEY, data); |
| 50 | |
| 51 | const displayNotification = ( |
| 52 | payload: NewNotification, |
| 53 | { timer = 5000 }: NotifyOptionalProps = {}, |
| 54 | ) => { |
| 55 | setInAppNotification({ notification: payload, timer }); |
| 56 | }; |
| 57 | |
| 58 | const addToQueue = (newNotification: NewNotification) => { |
| 59 | if (!newNotification || registeredNotification[newNotification.id]) { |
no test coverage detected