diff --git a/src/chrome/MainSidebar.tsx b/src/chrome/MainSidebar.tsx index 4fa5a38e8..9e1f5b896 100644 --- a/src/chrome/MainSidebar.tsx +++ b/src/chrome/MainSidebar.tsx @@ -54,6 +54,7 @@ import {BackgroundColorProperty} from 'csstype'; import SupportRequestFormManager from '../fb-stubs/SupportRequestFormManager'; import SupportRequestDetails from '../fb-stubs/SupportRequestDetails'; import SupportRequestFormV2 from '../fb-stubs/SupportRequestFormV2'; +import WatchTools from '../fb-stubs/WatchTools'; type FlipperPlugins = typeof FlipperPlugin[]; type PluginsByCategory = [string, FlipperPlugins][]; @@ -254,11 +255,13 @@ type DispatchFromProps = { type Props = OwnProps & StateFromProps & DispatchFromProps; type State = { showSupportForm: boolean; + showWatchDebugRoot: boolean; showAllPlugins: boolean; }; class MainSidebar extends PureComponent { state: State = { showSupportForm: GK.get('support_requests_v2'), + showWatchDebugRoot: GK.get('watch_team_flipper_clientless_access'), showAllPlugins: false, }; static getDerivedStateFromProps(props: Props, state: State) { @@ -373,6 +376,25 @@ class MainSidebar extends PureComponent { )} + {this.state.showWatchDebugRoot && + (function() { + const active = isStaticViewActive(staticView, WatchTools); + return ( + setStaticView(WatchTools)}> + + Watch + + ); + })()} {this.renderNotificationsEntry()} {this.state.showSupportForm && (function() { diff --git a/src/fb-stubs/WatchTools.tsx b/src/fb-stubs/WatchTools.tsx new file mode 100644 index 000000000..f257316bb --- /dev/null +++ b/src/fb-stubs/WatchTools.tsx @@ -0,0 +1,17 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @format + */ + +import React, {Component} from 'react'; +import {Text} from '../ui'; + +export default class extends Component { + render() { + return Debug Videos on Watch Bugs.; + } +}