Hide Sync Tab via Feature Flag (#2611)

This commit is contained in:
Arnab Chakraborty
2024-07-17 21:47:19 +00:00
committed by GitHub
parent 0bb073e8bb
commit 90a35c5cd3

View File

@@ -37,6 +37,7 @@ export default () => {
// const isPairingEnabled = useFeatureFlag('p2pPairing');
const isBackupsEnabled = useFeatureFlag('backups');
const cloudSync = useFeatureFlag('cloudSync');
const { t } = useLocale();
@@ -122,10 +123,12 @@ export default () => {
<Icon component={MagnifyingGlass} />
Saved Searches
</SidebarLink> */}
<SidebarLink to="library/sync">
<Icon component={ArrowsClockwise} />
{t('sync')}
</SidebarLink>
{cloudSync && (
<SidebarLink to="library/sync">
<Icon component={ArrowsClockwise} />
{t('sync')}
</SidebarLink>
)}
<SidebarLink disabled to="library/clouds">
<Icon component={Cloud} />
{t('clouds')}