From dedad1e240b9bae6b9de945ce2f66aeb1a3f3933 Mon Sep 17 00:00:00 2001 From: Mike Fortman Date: Tue, 6 Aug 2024 13:46:03 -0500 Subject: [PATCH] feat: Add Branding and Social Links to the UI Feature flags (#3169) * Add branding and socials FF * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- src/frontend/feature-config.json | 4 +- .../src/components/headerComponent/index.tsx | 58 ++++++++++--------- src/frontend/src/pages/FlowPage/index.tsx | 5 +- 3 files changed, 38 insertions(+), 29 deletions(-) diff --git a/src/frontend/feature-config.json b/src/frontend/feature-config.json index 0100b3ffb..d5a3a37b8 100644 --- a/src/frontend/feature-config.json +++ b/src/frontend/feature-config.json @@ -2,5 +2,7 @@ "ENABLE_DARK_MODE": true, "ENABLE_API": true, "ENABLE_LANGFLOW_STORE": true, - "ENABLE_PROFILE_ICONS": true + "ENABLE_PROFILE_ICONS": true, + "ENABLE_SOCIAL_LINKS": true, + "ENABLE_BRANDING": true } \ No newline at end of file diff --git a/src/frontend/src/components/headerComponent/index.tsx b/src/frontend/src/components/headerComponent/index.tsx index 9a99c8d1c..11ae845c6 100644 --- a/src/frontend/src/components/headerComponent/index.tsx +++ b/src/frontend/src/components/headerComponent/index.tsx @@ -155,34 +155,38 @@ export default function Header(): JSX.Element {
- - -
Star
-
{stars ?? 0}
-
- - - - - - + {FeatureFlags.ENABLE_SOCIAL_LINKS && ( + <> + + +
Star
+
{stars ?? 0}
+
+ + + + + + - + + + )} {FeatureFlags.ENABLE_DARK_MODE && (