Including notification util changes

This commit is contained in:
Nick Sandstrom 2025-12-31 13:20:09 -08:00
parent 7b1a85617f
commit b4b0774189
2 changed files with 11 additions and 1 deletions

View file

@ -4,6 +4,7 @@ import useLogosStore from '../store/logos';
import useVODLogosStore from '../store/vodLogos';
import LogosTable from '../components/tables/LogosTable';
import VODLogosTable from '../components/tables/VODLogosTable';
import { showNotification } from '../utils/notificationUtils.js';
const LogosPage = () => {
const logos = useLogosStore(s => s.logos);
@ -20,7 +21,7 @@ const LogosPage = () => {
await useLogosStore.getState().fetchAllLogos();
}
} catch (err) {
notifications.show({
showNotification({
title: 'Error',
message: 'Failed to load channel logos',
color: 'red',

View file

@ -0,0 +1,9 @@
import { notifications } from '@mantine/notifications';
export function showNotification(notificationObject) {
return notifications.show(notificationObject);
}
export function updateNotification(notificationId, notificationObject) {
return notifications.update(notificationId, notificationObject);
}