A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: filter features by platform
ammarahm-edc4fe52891d50
diff --git a/apps/mobile/src/components/sheets/newfeature/index.tsx b/apps/mobile/src/components/sheets/newfeature/index.tsxindex ff6aeea16..a38120dd2 100644--- a/apps/mobile/src/components/sheets/newfeature/index.tsx+++ b/apps/mobile/src/components/sheets/newfeature/index.tsx@@ -1,5 +1,5 @@import React from 'react';-import { View } from 'react-native';+import { Platform, View } from 'react-native';import { APP_VERSION } from '../../../../version';import { eSendEvent, presentSheet } from '../../../services/event-manager';import SettingsService from '../../../services/settings';@@ -14,6 +14,7 @@ import { features } from '../../../../features';export type FeatureType = {title: string;body: string;+ platform?: 'ios' | 'android';};const NewFeature = ({ features }: { features: FeatureType[] }) => {@@ -33,7 +34,7 @@ const NewFeature = ({ features }: { features: FeatureType[] }) => {<Seperator />- {features?.map(item => (+ {features.map(item => (<Viewkey={item.title}style={{@@ -77,7 +78,10 @@ NewFeature.present = () => {SettingsService.set({version: APP_VERSION});- if (features.length === 0) return;+ let _features = features?.filter(+ feature => !feature.platform || feature.platform === Platform.OS+ );+ if (_features.length === 0) return;presentSheet({component: <NewFeature features={features} />});