mirror of
https://github.com/standardnotes/mobile.git
synced 2026-04-21 14:46:55 -04:00
refactor: change the condition to show files feature (#595)
* refactor: correct condition to show files section * fix: show files on dev as well
This commit is contained in:
@@ -481,7 +481,7 @@ export const NoteSideMenu = React.memo((props: Props) => {
|
||||
}, [props.drawerRef, navigation]);
|
||||
|
||||
const isEntitledToFiles =
|
||||
application?.features.getFeatureStatus(FeatureIdentifier.Files) ===
|
||||
application?.features.getFeatureStatus(FeatureIdentifier.FilesBeta) ===
|
||||
FeatureStatus.Entitled;
|
||||
|
||||
const noteOptions = useMemo(() => {
|
||||
@@ -686,8 +686,7 @@ export const NoteSideMenu = React.memo((props: Props) => {
|
||||
|
||||
if (
|
||||
item.key === FilesSection &&
|
||||
isUnfinishedFeaturesEnabled(props.env) &&
|
||||
isEntitledToFiles
|
||||
(isEntitledToFiles || isUnfinishedFeaturesEnabled(props.env))
|
||||
) {
|
||||
return (
|
||||
<SideMenuSection
|
||||
|
||||
Reference in New Issue
Block a user