File tree Expand file tree Collapse file tree 5 files changed +11
-34
lines changed Expand file tree Collapse file tree 5 files changed +11
-34
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,4 @@ export enum FEATURES {
22 GENE_SETS = "gs" ,
33 CURATOR = "curator" ,
44 FILTER = "filter" ,
5- BYOD = "byod" ,
65}
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { StyledButton } from "../style" ;
33import { useBYODModal } from "src/contexts/BYODModalContext" ;
4- import { useFeatureFlag } from "src/common/hooks/useFeatureFlag" ;
5- import { FEATURES } from "src/common/featureFlags/features" ;
64import SparkleIcon from "src/common/images/sparkle-icon.svg" ;
75import { CalloutTextWrapper , CalloutTitle , StyledCallout } from "./style" ;
86
97const BYODCallout : React . FC = ( ) => {
108 const { openModal } = useBYODModal ( ) ;
11- const isBYODEnabled = useFeatureFlag ( FEATURES . BYOD ) ;
12-
13- if ( ! isBYODEnabled ) return null ;
149
1510 return (
1611 < StyledCallout intent = "info" icon = { < SparkleIcon /> } >
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import { StyledButton } from "../style";
55import { TOAST_BUTTON_TEXT } from "../constants" ;
66import { dismissToast , isToastDismissed } from "./utils" ;
77import { useBYODModal } from "src/contexts/BYODModalContext" ;
8- import { useFeatureFlag } from "src/common/hooks/useFeatureFlag" ;
9- import { FEATURES } from "src/common/featureFlags/features" ;
108import SparkleIcon from "src/common/images/sparkle-icon.svg" ;
119
1210const BYOD_TOAST_ID = "byod-ai-workspace" ;
@@ -16,7 +14,6 @@ const TOAST_MESSAGE =
1614export default function BYODToast ( ) : JSX . Element | null {
1715 const [ isVisible , setIsVisible ] = useState ( false ) ;
1816 const { openModal } = useBYODModal ( ) ;
19- const isBYODEnabled = useFeatureFlag ( FEATURES . BYOD ) ;
2017
2118 useEffect ( ( ) => {
2219 setIsVisible ( ! isToastDismissed ( BYOD_TOAST_ID ) ) ;
@@ -31,7 +28,7 @@ export default function BYODToast(): JSX.Element | null {
3128 openModal ( ) ;
3229 } ;
3330
34- if ( ! isBYODEnabled || ! isVisible ) return null ;
31+ if ( ! isVisible ) return null ;
3532
3633 return (
3734 < StyledToast >
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import { FC } from "react";
33import { HomepageLink } from "../common/HomepageLink" ;
44import AuthButtons from "./components/AuthButtons" ;
55import Nav from "src/components/Header/components/Nav" ;
6- import { useFeatureFlag } from "src/common/hooks/useFeatureFlag" ;
7- import { FEATURES } from "src/common/featureFlags/features" ;
86import { useBYODModal } from "src/contexts/BYODModalContext" ;
97import { useConnect } from "./connect" ;
108import {
@@ -29,7 +27,6 @@ const Header: FC = () => {
2927 } = useConnect ( ) ;
3028
3129 const { openModal } = useBYODModal ( ) ;
32- const isBYODEnabled = useFeatureFlag ( FEATURES . BYOD ) ;
3330
3431 const handleBYODClick = ( ) => {
3532 openModal ( ) ;
@@ -43,15 +40,9 @@ const Header: FC = () => {
4340 < Nav pathname = { pathname } />
4441 </ Left >
4542 < Right >
46- { isBYODEnabled && (
47- < Button
48- sdsType = "primary"
49- sdsStyle = "square"
50- onClick = { handleBYODClick }
51- >
52- Explore Your Data
53- </ Button >
54- ) }
43+ < Button sdsType = "primary" sdsStyle = "square" onClick = { handleBYODClick } >
44+ Explore Your Data
45+ </ Button >
5546
5647 < StyledInputDropdown
5748 disabled = { false }
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import { track } from "src/common/analytics";
55import { EVENTS } from "src/common/analytics/events" ;
66import { ROUTES } from "src/common/constants/routes" ;
77import AuthButtons from "src/components/Header/components/AuthButtons" ;
8- import { useFeatureFlag } from "src/common/hooks/useFeatureFlag" ;
9- import { FEATURES } from "src/common/featureFlags/features" ;
108import { useBYODModal } from "src/contexts/BYODModalContext" ;
119import { HomepageLink } from "../common/HomepageLink" ;
1210import {
@@ -55,7 +53,6 @@ const LandingHeader: FC<Props> = ({
5553 const mobileNavTray = useRef < HTMLDivElement > ( null ) ;
5654 const [ mobileMenuOpen , setMobileMenuOpen ] = useState ( false ) ;
5755 const { openModal } = useBYODModal ( ) ;
58- const isBYODEnabled = useFeatureFlag ( FEATURES . BYOD ) ;
5956
6057 const handleBYODClick = ( ) => {
6158 openModal ( ) ;
@@ -156,15 +153,13 @@ const LandingHeader: FC<Props> = ({
156153 < Nav pathname = { pathname } />
157154 </ Left >
158155 < Right >
159- { isBYODEnabled && (
160- < Button
161- sdsType = "primary"
162- sdsStyle = "square"
163- onClick = { handleBYODClick }
164- >
165- Explore Your Data
166- </ Button >
167- ) }
156+ < Button
157+ sdsType = "primary"
158+ sdsStyle = "square"
159+ onClick = { handleBYODClick }
160+ >
161+ Explore Your Data
162+ </ Button >
168163
169164 < LinkWrapper isActive = { isRouteActive ( pathname , ROUTES . DOCS ) } >
170165 < a
You can’t perform that action at this time.
0 commit comments