From 106e51f13e362ca3014ed26c97c4f6c1fccc6825 Mon Sep 17 00:00:00 2001 From: gtarpenning Date: Tue, 14 Jan 2025 12:45:22 -0800 Subject: [PATCH] op type extract --- .../components/PagePanelComponents/Home/Browse3/context.tsx | 2 +- .../Home/Browse3/pages/OpsPage/OpVersionsPage.tsx | 5 +---- .../Home/Browse3/pages/OpsPage/opsPageTypes.ts | 3 +++ .../PagePanelComponents/Home/Browse3/pages/common/Links.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 weave-js/src/components/PagePanelComponents/Home/Browse3/pages/OpsPage/opsPageTypes.ts diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/context.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/context.tsx index 75eda6fcb55a..9a1dbc18f50c 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/context.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/context.tsx @@ -17,7 +17,7 @@ import {useHistory, useLocation} from 'react-router-dom'; import {WFHighLevelCallFilter} from './pages/CallsPage/callsTableFilter'; import {WFHighLevelObjectVersionFilter} from './pages/ObjectsPage/objectsPageTypes'; -import {WFHighLevelOpVersionFilter} from './pages/OpsPage/OpVersionsPage'; +import {WFHighLevelOpVersionFilter} from './pages/OpsPage/opsPageTypes'; import {useURLSearchParamsDict} from './pages/util'; import { AWL_ROW_EDGE_NAME, diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/OpsPage/OpVersionsPage.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/OpsPage/OpVersionsPage.tsx index 05e33469291d..69e6f029cb2e 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/OpsPage/OpVersionsPage.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/OpsPage/OpVersionsPage.tsx @@ -26,10 +26,7 @@ import {useControllableState, useURLSearchParamsDict} from '../util'; import {useWFHooks} from '../wfReactInterface/context'; import {opVersionKeyToRefUri} from '../wfReactInterface/utilities'; import {OpVersionSchema} from '../wfReactInterface/wfDataModelHooksInterface'; - -export type WFHighLevelOpVersionFilter = { - opName?: string | null; -}; +import {WFHighLevelOpVersionFilter} from './opsPageTypes'; export const OpVersionsPage: React.FC<{ entity: string; diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/OpsPage/opsPageTypes.ts b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/OpsPage/opsPageTypes.ts new file mode 100644 index 000000000000..6c1bab0bda57 --- /dev/null +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/OpsPage/opsPageTypes.ts @@ -0,0 +1,3 @@ +export type WFHighLevelOpVersionFilter = { + opName?: string | null; +}; diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/common/Links.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/common/Links.tsx index a17f540ba54a..8d52fc8052ca 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/common/Links.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/common/Links.tsx @@ -20,7 +20,7 @@ import { } from '../../context'; import {WFHighLevelCallFilter} from '../CallsPage/callsTableFilter'; import {WFHighLevelObjectVersionFilter} from '../ObjectsPage/objectsPageTypes'; -import {WFHighLevelOpVersionFilter} from '../OpsPage/OpVersionsPage'; +import {WFHighLevelOpVersionFilter} from '../OpsPage/opsPageTypes'; import {Id} from './Id'; type LinkVariant = 'primary' | 'secondary';