From 1c4addd736da48d5b6200664ff812bccf21d3297 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Wed, 4 Dec 2019 02:53:33 -0800 Subject: [PATCH] Fix: Litho support form links to the old support form Summary: See title Reviewed By: jknoxville Differential Revision: D18807448 fbshipit-source-id: 7167d18953440377ee739cf0db03a8fb600112a9 --- src/index.tsx | 1 + src/plugins/layout/index.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 49da78917..f5654591a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -25,6 +25,7 @@ export {default as Client} from './Client'; export {MetricType} from './utils/exportMetrics'; export {clipboard} from 'electron'; export {default as SupportRequestFormManager} from './fb-stubs/SupportRequestFormManager'; +export {default as SupportRequestFormV2} from './fb-stubs/SupportRequestFormV2'; export {default as constants} from './fb-stubs/constants'; export {connect} from 'react-redux'; export {selectPlugin, StaticView} from './reducers/connections'; diff --git a/src/plugins/layout/index.tsx b/src/plugins/layout/index.tsx index 27f9c62de..895d30b77 100644 --- a/src/plugins/layout/index.tsx +++ b/src/plugins/layout/index.tsx @@ -25,6 +25,7 @@ import { styled, colors, SupportRequestFormManager, + SupportRequestFormV2, constants, ReduxState, } from 'flipper'; @@ -82,7 +83,11 @@ export default class Layout extends FlipperPlugin { { - this.props.setStaticView(SupportRequestFormManager); + this.props.setStaticView( + GK.get('support_requests_v2') + ? SupportRequestFormV2 + : SupportRequestFormManager, + ); }}> Try it out