From 317ff817445c20a64b5978dae1210a515c248f4f Mon Sep 17 00:00:00 2001 From: Brandon Millman Date: Tue, 15 May 2018 16:18:49 -0700 Subject: Set up scaffolding for new drawer --- packages/website/ts/components/top_bar/top_bar.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'packages/website/ts/components') diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 5fde007d6..7d5d05c9f 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -18,6 +18,7 @@ import { Dispatcher } from 'ts/redux/dispatcher'; import { Deco, Key, ProviderType, WebsiteLegacyPaths, WebsitePaths } from 'ts/types'; import { constants } from 'ts/utils/constants'; import { Translate } from 'ts/utils/translate'; +import { utils } from 'ts/utils/utils'; export enum TopBarDisplayType { Default, @@ -202,6 +203,8 @@ export class TopBar extends React.Component { ); const popoverContent = {developerSectionMenuItems}; + // TODO : Remove this once we ship portal v2 + const shouldShowPortalV2Drawer = this._isViewingPortal() && utils.shouldShowPortalV2(); return (
@@ -274,10 +277,22 @@ export class TopBar extends React.Component {
- {this._renderDrawer()} + {shouldShowPortalV2Drawer ? this._renderPortalV2Drawer() : this._renderDrawer()} ); } + private _renderPortalV2Drawer(): React.ReactNode { + return ( + +
+ + ); + } private _renderDrawer(): React.ReactNode { return (