diff --git a/public/pages/Main/Main.tsx b/public/pages/Main/Main.tsx index fc0590be7..ba58307d6 100644 --- a/public/pages/Main/Main.tsx +++ b/public/pages/Main/Main.tsx @@ -189,6 +189,7 @@ const dataSourceEnabledPaths: string[] = [ ROUTES.REPOSITORIES, ROUTES.CREATE_REPOSITORY, ROUTES.EDIT_REPOSITORY, + ROUTES.NOTIFICATIONS, ]; const LocalCluster: DataSourceOption = { @@ -521,6 +522,7 @@ export default class Main extends Component { ROUTES.REPOSITORIES, ROUTES.CREATE_REPOSITORY, ROUTES.EDIT_REPOSITORY, + ROUTES.NOTIFICATIONS, ]} render={() => ( { ); }; -// @ts-ignore -export default Notifications; +export default function (props: NotificationsProps) { + const dataSourceMenuProps = useContext(DataSourceMenuContext); + return ; +} diff --git a/server/services/NotificationService.ts b/server/services/NotificationService.ts index 7b6005dc2..14a7682d7 100644 --- a/server/services/NotificationService.ts +++ b/server/services/NotificationService.ts @@ -8,7 +8,6 @@ import { OpenSearchDashboardsRequest, OpenSearchDashboardsResponseFactory, IOpenSearchDashboardsResponse, - ILegacyCustomClusterClient, ResponseError, } from "opensearch-dashboards/server"; import { ServerResponse } from "../models/types";