fix: change notification hooks to internal
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
*/
|
||||
export { notificationsPlugin, NotificationsPage } from './plugin';
|
||||
export * from './api';
|
||||
export * from './hooks';
|
||||
export { useNotificationsApi } from './hooks';
|
||||
export * from './components';
|
||||
|
||||
Reference in New Issue
Block a user