From 7142f6310cfd675827964c88f3108163106d0372 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 28 Jan 2021 08:18:26 -0800 Subject: [PATCH] Use modern fb-only components for homepage Summary: Also removed a weird href on a paragraph. Reviewed By: mweststrate Differential Revision: D26125630 fbshipit-source-id: b3fab87cf295f8fdbfe142e8c0a32909ce828a57 --- website/src/pages/index.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/website/src/pages/index.js b/website/src/pages/index.js index eb9722892..3eea8fe06 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -11,11 +11,9 @@ import React from 'react'; import Layout from '@theme/Layout'; import useBaseUrl from '@docusaurus/useBaseUrl'; import {usePluginData} from '@docusaurus/useGlobalData'; -import {isInternal} from 'internaldocs-fb-helpers'; +import {FbInternalOnly, OssOnly} from 'internaldocs-fb-helpers'; export default function Index() { - const FB_INTERNAL = isInternal(); - return (
@@ -28,16 +26,15 @@ export default function Index() { desktop interface. Use Flipper as is or extend it using the plugin API. - {FB_INTERNAL ? ( +

Facebook employees should download the internal version of Flipper from Managed Software Center

- ) : ( +
+
-

+

Download

- )} +
Integrate Flipper In Your App - {FB_INTERNAL ? null : ( + Download Flipper - )} +