fix: change notification hooks to internal

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-05-30 15:45:38 +03:00
parent 0410fc9ce6
commit a880e941aa
4 changed files with 3 additions and 21 deletions
@@ -25,7 +25,7 @@ const throttledSetTitle = throttle((shownTitle: string) => {
document.title = shownTitle;
}, 100);
/** @public */
/** @internal */
export function useTitleCounter() {
const [title, setTitle] = useState(document.title);
const [count, setCount] = useState(0);
@@ -19,7 +19,7 @@ import { useApi, useRouteRef } from '@backstage/core-plugin-api';
import { useNavigate } from 'react-router-dom';
import { notificationsApiRef } from '../api';
/** @public */
/** @internal */
export function useWebNotifications(
enabled: boolean,
markAsReadOnLinkOpen: boolean,
+1 -1
View File
@@ -15,5 +15,5 @@
*/
export { notificationsPlugin, NotificationsPage } from './plugin';
export * from './api';
export * from './hooks';
export { useNotificationsApi } from './hooks';
export * from './components';