Skip to content

Commit b92e994

Browse files
committed
Show buttons only if their feature flags are true
1 parent 76fa469 commit b92e994

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/screens/landing-page/sections/header/views/HeaderBarDesktop.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,16 @@ const HeaderBarDesktop = ({isApp}) => {
1616
<HStack gap={5} justifyContent={'flex-end'} alignItems={'center'} sx={{width: '100%'}}>
1717
<HStack gap={3}>
1818
{isApp ? null : <LandingPageWAppButton backgroundColor={'primary'}/>}
19-
{isApp ? null : <LandingPageHollowButton text={t('menu.improve')} to={'/#feedback'}/>}
20-
{isApp ? null : <LandingPageHollowButton text={t('menu.collaborate')} to={'/#collaboration'}/>}
19+
{isApp ? null :
20+
featureFlags.newFeedbackSection ?
21+
<LandingPageHollowButton text={t('menu.improve')} to={'/#feedback'}/>
22+
: null
23+
}
24+
{isApp ? null :
25+
featureFlags.newCollaborationSection ?
26+
<LandingPageHollowButton text={t('menu.collaborate')} to={'/#collaboration'}/>
27+
: null
28+
}
2129
{isApp ? null :
2230
featureFlags.newActivityLog ?
2331
<LandingPageHollowButton text={t('menu.activityLog')} to={'/activity-log'}/>

0 commit comments

Comments
 (0)