feat: allow overriding notifications page properties

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-04-22 18:23:36 +03:00
parent 9624efb688
commit e6bf85f0cf
5 changed files with 58 additions and 6 deletions
+11 -3
View File
@@ -15,13 +15,21 @@
*/
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { NotificationsPage, notificationsPlugin } from '../src/plugin';
import { NotificationsSidebarItem } from '../src';
import {
NotificationsPage,
notificationsPlugin,
NotificationsSidebarItem,
} from '../src';
createDevApp()
.registerPlugin(notificationsPlugin)
.addPage({
element: <NotificationsPage />,
element: (
<NotificationsPage
title="Notifications (debug)"
subtitle="Notifications local development environment to showcase notification capabilities"
/>
),
path: '/notifications',
})
.addSidebarItem(<NotificationsSidebarItem />)