diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogRoot.tsx index 792ea6a0ae7f6..726e6777a767b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogRoot.tsx @@ -1,8 +1,7 @@ import {gql, useQuery} from '@apollo/client'; import {Box, Colors, Page, Spinner} from '@dagster-io/ui-components'; import * as React from 'react'; -import {useHistory} from 'react-router'; -import {useParams} from 'react-router-dom'; +import {useHistory, useParams} from 'react-router-dom'; import {useTrackPageView} from '../app/analytics'; import {displayNameForAssetKey} from '../asset-graph/Utils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/useLaunchWithTelemetry.ts b/js_modules/dagster-ui/packages/ui-core/src/launchpad/useLaunchWithTelemetry.ts index 73c4b903ad44e..1b446b7fd2e19 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/useLaunchWithTelemetry.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/useLaunchWithTelemetry.ts @@ -1,6 +1,6 @@ import {useMutation} from '@apollo/client'; import * as React from 'react'; -import {useHistory} from 'react-router'; +import {useHistory} from 'react-router-dom'; import {TelemetryAction, useTelemetryAction} from '../app/Telemetry'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillSelector.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillSelector.tsx index 59892025d0591..c4c53b6209b8c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillSelector.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillSelector.tsx @@ -13,7 +13,7 @@ import { Tooltip, } from '@dagster-io/ui-components'; import * as React from 'react'; -import {useHistory} from 'react-router'; +import {useHistory} from 'react-router-dom'; import {PipelineRunTag} from '../app/ExecutionSessionStorage'; import {filterByQuery} from '../app/GraphQueryImpl'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useJobReExecution.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/useJobReExecution.tsx index 96a70566a9d0c..e9e9a6c256a6e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useJobReExecution.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useJobReExecution.tsx @@ -1,6 +1,6 @@ import {useMutation} from '@apollo/client'; import * as React from 'react'; -import {useHistory} from 'react-router'; +import {useHistory} from 'react-router-dom'; import {showLaunchError} from '../launchpad/showLaunchError'; import {useRepositoryForRunWithParentSnapshot} from '../workspace/useRepositoryForRun';