Merge branch '18368-notification-banner' into main
[arvados-workbench2.git] / src / store / process-logs-panel / process-logs-panel.ts
index e0753cde7bfb7e2cee14f9a305d30d3979851049..0ca5d679c9caa14b0e2c2fe8847d56d57f61de29 100644 (file)
@@ -1,9 +1,10 @@
-import { RootState } from '../store';
-import { matchProcessLogRoute } from '~/routes/routes';
 // Copyright (C) The Arvados Authors. All rights reserved.
 //
 // SPDX-License-Identifier: AGPL-3.0
 
+import { matchProcessRoute } from 'routes/routes';
+import { RouterState } from 'react-router-redux';
+
 export interface ProcessLogsPanel {
     filters: string[];
     selectedFilter: string;
@@ -18,8 +19,8 @@ export const getProcessPanelLogs = ({ selectedFilter, logs }: ProcessLogsPanel)
     return logs[selectedFilter];
 };
 
-export const getProcessLogsPanelCurrentUuid = ({ router }: RootState) => {
+export const getProcessLogsPanelCurrentUuid = (router: RouterState) => {
     const pathname = router.location ? router.location.pathname : '';
-    const match = matchProcessLogRoute(pathname);
+    const match = matchProcessRoute(pathname);
     return match ? match.params.id : undefined;
 };