From 84733ffd9ca471a914815ad56ca45a1132197d3e Mon Sep 17 00:00:00 2001 From: Isaac Hellendag Date: Tue, 20 Aug 2024 14:09:23 -0500 Subject: [PATCH] [ui] Make CodeLocationTabs a shared component --- .../ui-core/src/code-location/CodeLocationDefinitionsRoot.tsx | 2 +- .../ui-core/src/code-location/CodeLocationOverviewRoot.tsx | 2 +- .../{CodeLocationTabs.tsx => CodeLocationTabs.oss.tsx} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename js_modules/dagster-ui/packages/ui-core/src/code-location/{CodeLocationTabs.tsx => CodeLocationTabs.oss.tsx} (100%) diff --git a/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationDefinitionsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationDefinitionsRoot.tsx index 9850d9510115d..d1cc768114cda 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationDefinitionsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationDefinitionsRoot.tsx @@ -1,9 +1,9 @@ import {Box} from '@dagster-io/ui-components'; +import {CodeLocationTabs} from 'shared/code-location/CodeLocationTabs.oss'; import {CodeLocationDefinitionsMain} from './CodeLocationDefinitionsMain'; import {CodeLocationDefinitionsNav} from './CodeLocationDefinitionsNav'; import {CodeLocationPageHeader} from './CodeLocationPageHeader'; -import {CodeLocationTabs} from './CodeLocationTabs'; import {RepoAddress} from '../workspace/types'; import {WorkspaceRepositoryFragment} from '../workspace/types/WorkspaceQueries.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationOverviewRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationOverviewRoot.tsx index cdd44af4572fb..d4d8adeffc388 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationOverviewRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationOverviewRoot.tsx @@ -9,11 +9,11 @@ import { Table, } from '@dagster-io/ui-components'; import {ComponentProps, ReactNode, useMemo} from 'react'; +import {CodeLocationTabs} from 'shared/code-location/CodeLocationTabs.oss'; import {createGlobalStyle} from 'styled-components'; import * as yaml from 'yaml'; import {CodeLocationPageHeader} from './CodeLocationPageHeader'; -import {CodeLocationTabs} from './CodeLocationTabs'; import {TimeFromNow} from '../ui/TimeFromNow'; import {LocationStatus} from '../workspace/CodeLocationRowSet'; import {WorkspaceRepositoryLocationNode} from '../workspace/WorkspaceContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationTabs.oss.tsx similarity index 100% rename from js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationTabs.tsx rename to js_modules/dagster-ui/packages/ui-core/src/code-location/CodeLocationTabs.oss.tsx