Skip to content

Commit

Permalink
chore: add feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mavarius committed Jan 11, 2024
1 parent 6666c3f commit b3351be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/homepageExperience/containers/HomepageContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ import {AddDataAccordion} from 'src/homepageExperience/components/OptionAccordio
import {QueryDataAccordion} from 'src/homepageExperience/components/OptionAccordion/QueryDataAccordion'
import {VisualizeAccordion} from 'src/homepageExperience/components/OptionAccordion/VisualizeAccordion'
import {DeployAccordion} from 'src/homepageExperience/components/OptionAccordion/DeployAccordion'
import {isFlagEnabled} from 'src/shared/utils/featureFlag'

// Styles
import 'src/homepageExperience/containers/HomepageContents.scss'

export const HomepageContents: FC = () => {
const {account} = useSelector(selectCurrentIdentity)
const freeAccount = CLOUD && account.type === 'free'
const showDeployAccordion = freeAccount && isFlagEnabled('deployAccordion')

return (
<Page titleTag={pageTitleSuffixer(['Get Started'])}>
Expand Down Expand Up @@ -74,7 +76,7 @@ export const HomepageContents: FC = () => {
<AddDataAccordion />
<QueryDataAccordion />
<VisualizeAccordion />
{freeAccount && <DeployAccordion />}
{showDeployAccordion && <DeployAccordion />}
</FlexBox.Child>
</FlexBox>
</Grid.Column>
Expand Down

0 comments on commit b3351be

Please sign in to comment.