diff --git a/src/pages/studyView/StudyViewPage.tsx b/src/pages/studyView/StudyViewPage.tsx index 1a0ef43111c..d25dd78bf65 100644 --- a/src/pages/studyView/StudyViewPage.tsx +++ b/src/pages/studyView/StudyViewPage.tsx @@ -82,6 +82,7 @@ import { import { VirtualStudyModal } from 'pages/studyView/virtualStudy/VirtualStudyModal'; import PlotsTab from 'shared/components/plots/PlotsTab'; import { RFC80Test } from 'pages/studyView/rfc80Tester'; +import { PlotsTabWrapper } from 'pages/studyView/StudyViewPlotsTabWrapper'; export interface IStudyViewPageProps { routing: any; @@ -760,142 +761,25 @@ export default class StudyViewPage extends React.Component< /> - {/**/} - {/* {*/} - {/* StudyViewPageTabDescriptions.PLOTS*/} - {/* }{' '}*/} - {/* */} - {/* Beta!*/} - {/* */} - {/* */} - {/* }*/} - {/*>*/} - {/* */} - {/**/} + + { + StudyViewPageTabDescriptions.PLOTS + }{' '} + + Beta! + + + } + > + + {this.resourceTabs.component} {this.customTabs} diff --git a/src/pages/studyView/StudyViewPlotsTabWrapper.tsx b/src/pages/studyView/StudyViewPlotsTabWrapper.tsx new file mode 100644 index 00000000000..0150225b30b --- /dev/null +++ b/src/pages/studyView/StudyViewPlotsTabWrapper.tsx @@ -0,0 +1,71 @@ +import * as React from 'react'; +import { StudyViewPageStore } from 'pages/studyView/StudyViewPageStore'; +import StudyViewURLWrapper from 'pages/studyView/StudyViewURLWrapper'; +import { observer } from 'mobx-react'; +import PlotsTab from 'shared/components/plots/PlotsTab'; + +export const PlotsTabWrapper: React.FunctionComponent<{ + store: StudyViewPageStore; + urlWrapper: StudyViewURLWrapper; +}> = observer(function({ store, urlWrapper }) { + return ( + + ); +});