From 01a529cc534c0930bb4eca1b4b853faecf25c0c4 Mon Sep 17 00:00:00 2001 From: Pim van Nierop Date: Sat, 21 May 2022 10:48:03 +0200 Subject: [PATCH] Fix imports --- src/pages/resultsView/ResultsViewPage.tsx | 2 +- src/pages/studyView/chartHeader/ChartHeader.tsx | 2 +- src/pages/studyView/studyPageHeader/ActionButtons.tsx | 2 +- .../studyView/studyPageHeader/studySummary/StudySummary.tsx | 2 +- src/shared/components/cnSegments/CNSegmentsDownloader.tsx | 2 +- .../components/copyDownloadControls/CopyDownloadControls.tsx | 2 +- .../components/copyDownloadControls/CopyDownloadQueryLinks.tsx | 2 +- .../copyDownloadControls/SimpleCopyDownloadControls.tsx | 2 +- src/shared/components/oncoprint/controls/OncoprintControls.tsx | 2 +- src/shared/components/query/QueryAndDownloadTabs.tsx | 2 +- src/shared/components/structureViewer/StructureViewerPanel.tsx | 2 +- .../components/tableHeaderControls/TableHeaderControls.tsx | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/pages/resultsView/ResultsViewPage.tsx b/src/pages/resultsView/ResultsViewPage.tsx index b273f4d8865..d15635d5d93 100644 --- a/src/pages/resultsView/ResultsViewPage.tsx +++ b/src/pages/resultsView/ResultsViewPage.tsx @@ -69,7 +69,7 @@ import { } from 'shared/lib/customTabs/customTabHelpers'; import { buildCBioPortalPageUrl } from 'shared/api/urls'; import IFrameLoader from 'shared/components/iframeLoader/IFrameLoader'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export function initStore( appStore: AppStore, diff --git a/src/pages/studyView/chartHeader/ChartHeader.tsx b/src/pages/studyView/chartHeader/ChartHeader.tsx index fb2793231e7..6fe46ccf84d 100644 --- a/src/pages/studyView/chartHeader/ChartHeader.tsx +++ b/src/pages/studyView/chartHeader/ChartHeader.tsx @@ -22,7 +22,7 @@ import { StudyViewPageStore } from 'pages/studyView/StudyViewPageStore'; import { ISurvivalDescription } from 'pages/resultsView/survival/SurvivalDescriptionTable'; import ComparisonVsIcon from 'shared/components/ComparisonVsIcon'; import { getComparisonParamsForTable } from 'pages/studyView/StudyViewComparisonUtils'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export interface IChartHeaderProps { chartMeta: ChartMeta; diff --git a/src/pages/studyView/studyPageHeader/ActionButtons.tsx b/src/pages/studyView/studyPageHeader/ActionButtons.tsx index 8d7b0efe098..8276d101bcb 100644 --- a/src/pages/studyView/studyPageHeader/ActionButtons.tsx +++ b/src/pages/studyView/studyPageHeader/ActionButtons.tsx @@ -13,7 +13,7 @@ import { StudyViewPageStore } from 'pages/studyView/StudyViewPageStore'; import classNames from 'classnames'; import { AppStore } from '../../../AppStore'; import { serializeEvent } from '../../../shared/lib/tracking'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export interface ActionButtonsProps { loadingComplete: boolean; store: StudyViewPageStore; diff --git a/src/pages/studyView/studyPageHeader/studySummary/StudySummary.tsx b/src/pages/studyView/studyPageHeader/studySummary/StudySummary.tsx index 643d7032c49..a7c149ad0a6 100644 --- a/src/pages/studyView/studyPageHeader/studySummary/StudySummary.tsx +++ b/src/pages/studyView/studyPageHeader/studySummary/StudySummary.tsx @@ -13,7 +13,7 @@ import MobxPromise from 'mobxpromise'; import { StudyDataDownloadLink } from '../../../../shared/components/StudyDataDownloadLink/StudyDataDownloadLink'; import { serializeEvent } from '../../../../shared/lib/tracking'; import { mixedReferenceGenomeWarning } from 'shared/lib/referenceGenomeUtils'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; interface IStudySummaryProps { studies: CancerStudy[]; diff --git a/src/shared/components/cnSegments/CNSegmentsDownloader.tsx b/src/shared/components/cnSegments/CNSegmentsDownloader.tsx index 14c71e19873..184ac26b6eb 100644 --- a/src/shared/components/cnSegments/CNSegmentsDownloader.tsx +++ b/src/shared/components/cnSegments/CNSegmentsDownloader.tsx @@ -10,7 +10,7 @@ import { generateSegmentFileContent } from 'shared/lib/IGVUtils'; import { onMobxPromise } from 'cbioportal-frontend-commons'; import fileDownload from 'react-file-download'; import autobind from 'autobind-decorator'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export type CNSegmentsDownloaderProps = { promise: MobxPromise; diff --git a/src/shared/components/copyDownloadControls/CopyDownloadControls.tsx b/src/shared/components/copyDownloadControls/CopyDownloadControls.tsx index 658243b7000..e0916df9239 100644 --- a/src/shared/components/copyDownloadControls/CopyDownloadControls.tsx +++ b/src/shared/components/copyDownloadControls/CopyDownloadControls.tsx @@ -10,7 +10,7 @@ const Clipboard = require('clipboard'); import copyDownloadStyles from './copyDownloadControls.module.scss'; import { CopyDownloadButtons } from './CopyDownloadButtons'; import { ICopyDownloadControlsProps } from './ICopyDownloadControls'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export interface IAsyncCopyDownloadControlsProps extends ICopyDownloadControlsProps { diff --git a/src/shared/components/copyDownloadControls/CopyDownloadQueryLinks.tsx b/src/shared/components/copyDownloadControls/CopyDownloadQueryLinks.tsx index 2dca880d135..0f86a3206e6 100644 --- a/src/shared/components/copyDownloadControls/CopyDownloadQueryLinks.tsx +++ b/src/shared/components/copyDownloadControls/CopyDownloadQueryLinks.tsx @@ -7,7 +7,7 @@ import VirtualStudy, { IVirtualStudyProps, } from 'pages/studyView/virtualStudy/VirtualStudy'; import { computed } from 'mobx'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export interface ICopyDownloadLinksProps extends ICopyDownloadInputsProps { copyLinkRef?: (el: HTMLAnchorElement | null) => void; diff --git a/src/shared/components/copyDownloadControls/SimpleCopyDownloadControls.tsx b/src/shared/components/copyDownloadControls/SimpleCopyDownloadControls.tsx index a4701021640..efca14b4c3c 100644 --- a/src/shared/components/copyDownloadControls/SimpleCopyDownloadControls.tsx +++ b/src/shared/components/copyDownloadControls/SimpleCopyDownloadControls.tsx @@ -6,7 +6,7 @@ import { CopyDownloadLinks } from './CopyDownloadLinks'; import { CopyDownloadButtons } from './CopyDownloadButtons'; import { ICopyDownloadControlsProps } from './ICopyDownloadControls'; import { CopyDownloadQueryLinks } from './CopyDownloadQueryLinks'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; const Clipboard = require('clipboard'); export interface ISimpleCopyDownloadControlsProps diff --git a/src/shared/components/oncoprint/controls/OncoprintControls.tsx b/src/shared/components/oncoprint/controls/OncoprintControls.tsx index c685e573bab..6d2860da546 100644 --- a/src/shared/components/oncoprint/controls/OncoprintControls.tsx +++ b/src/shared/components/oncoprint/controls/OncoprintControls.tsx @@ -35,7 +35,7 @@ import { IDriverAnnotationControlsState, } from 'shared/alterationFiltering/AnnotationFilteringSettings'; import DriverAnnotationControls from 'shared/components/driverAnnotations/DriverAnnotationControls'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export interface IOncoprintControlsHandlers extends IDriverAnnotationControlsHandlers { diff --git a/src/shared/components/query/QueryAndDownloadTabs.tsx b/src/shared/components/query/QueryAndDownloadTabs.tsx index bd2c215aae1..819fdad9816 100644 --- a/src/shared/components/query/QueryAndDownloadTabs.tsx +++ b/src/shared/components/query/QueryAndDownloadTabs.tsx @@ -12,7 +12,7 @@ import { trackEvent } from 'shared/lib/tracking'; import { If } from 'react-if'; import { getServerConfig } from 'config/config'; import { ModifyQueryParams } from 'pages/resultsView/ResultsViewPageStore'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; const DOWNLOAD = 'download'; const ADVANCED = 'advanced'; diff --git a/src/shared/components/structureViewer/StructureViewerPanel.tsx b/src/shared/components/structureViewer/StructureViewerPanel.tsx index 9ea6c1a8e09..2a5c1f61fbc 100644 --- a/src/shared/components/structureViewer/StructureViewerPanel.tsx +++ b/src/shared/components/structureViewer/StructureViewerPanel.tsx @@ -35,7 +35,7 @@ import { import PyMolScriptGenerator from './PyMolScriptGenerator'; import styles from './structureViewer.module.scss'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export interface IStructureViewerPanelProps extends IProteinImpactTypeColors { pdbChainDataStore: ILazyMobXTableApplicationDataStore; diff --git a/src/shared/components/tableHeaderControls/TableHeaderControls.tsx b/src/shared/components/tableHeaderControls/TableHeaderControls.tsx index 14740ab5802..0658168e741 100644 --- a/src/shared/components/tableHeaderControls/TableHeaderControls.tsx +++ b/src/shared/components/tableHeaderControls/TableHeaderControls.tsx @@ -15,7 +15,7 @@ import { ColumnVisibilityControls, } from '../columnVisibilityControls/ColumnVisibilityControls'; import { computed } from 'mobx'; -import { AppContext } from 'cbioportal-frontend-commons/src'; +import { AppContext } from 'cbioportal-frontend-commons'; export interface ITableHeaderControlsProps { tableData?: Array;