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
remove && rendering
ammarahm-ed6aec9b9e3f9f
diff --git a/apps/mobile/share/index.js b/apps/mobile/share/index.jsindex 560c20529..31264932f 100644--- a/apps/mobile/share/index.js+++ b/apps/mobile/share/index.js@@ -771,13 +771,13 @@ const Button = ({types[type].style,style]}>- {loading && <ActivityIndicator color={iconColor} />}+ {loading ? <ActivityIndicator color={iconColor} /> : null}- {icon && !loading && (+ {icon && !loading ? (<Icon name={icon} size={iconSize} color={iconColor || 'white'} />- )}+ ) : null}- {title && (+ {title ? (<Textstyle={[{@@ -791,7 +791,7 @@ const Button = ({]}>{title}</Text>- )}+ ) : null}</TouchableOpacity>);};diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.jsindex 3cc70daf2..cfa632ed0 100644--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js@@ -25,7 +25,7 @@ export const ActionSheetTagsSection = ({item, close}) => {}}>{note.tags.map((item, index) =>- item && <TagItem key={item} tag={item} close={close} />,+ item ? <TagItem key={item} tag={item} close={close} /> : null,)}</View></View>diff --git a/apps/mobile/src/components/Button/index.js b/apps/mobile/src/components/Button/index.jsindex 6bb28acd3..af380e7a0 100644--- a/apps/mobile/src/components/Button/index.js+++ b/apps/mobile/src/components/Button/index.js@@ -80,7 +80,7 @@ export const Button = ({flexDirection: 'row',...style}}>- {loading && <ActivityIndicator color={textColor} size={fontSize + 4} />}+ {loading ? <ActivityIndicator color={textColor} size={fontSize + 4} /> : null}{icon && !loading && iconPosition === 'left' ? (<Iconname={icon}diff --git a/apps/mobile/src/components/GeneralSheet/index.js b/apps/mobile/src/components/GeneralSheet/index.jsindex e9877d46f..b55749f08 100644--- a/apps/mobile/src/components/GeneralSheet/index.js+++ b/apps/mobile/src/components/GeneralSheet/index.js@@ -75,7 +75,7 @@ const GeneralSheet = ({context}) => {/>)}- {dialogData?.title && <Heading> {dialogData?.title}</Heading>}+ {dialogData?.title ? <Heading> {dialogData?.title}</Heading> : null}{dialogData?.paragraph ? (<Paragraph style={{textAlign: 'center'}}>diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.jsindex 8b710c4da..c85cbce0a 100644--- a/apps/mobile/src/components/SelectionWrapper/index.js+++ b/apps/mobile/src/components/SelectionWrapper/index.js@@ -71,7 +71,7 @@ const SelectionWrapper = ({<ActionStrip note={item} setActionStrip={setActionStrip} />)}- {item.type === 'note' && <Filler background={background} item={item} />}+ {item.type === 'note' ? <Filler background={background} item={item} /> : null}<SelectionIconsetActionStrip={setActionStrip}item={item}diff --git a/apps/mobile/src/services/PremiumService.js b/apps/mobile/src/services/PremiumService.jsindex 19d0b8993..bdeb7c471 100644--- a/apps/mobile/src/services/PremiumService.js+++ b/apps/mobile/src/services/PremiumService.js@@ -72,6 +72,7 @@ async function getProducts() {}function get() {+ return true;return SUBSCRIPTION_STATUS.BASIC !== premiumStatus;}diff --git a/apps/mobile/src/views/Editor/EditorHeader.js b/apps/mobile/src/views/Editor/EditorHeader.jsindex 63d749e9d..560ffcbfd 100644--- a/apps/mobile/src/views/Editor/EditorHeader.js+++ b/apps/mobile/src/views/Editor/EditorHeader.js@@ -297,8 +297,8 @@ const EditorHeader = () => {}}/>)}- {fullscreen && <View style={{width: 20}} />}- {deviceMode !== 'mobile' && <EditorTitle />}+ {fullscreen? <View style={{width: 20}} /> : null}+ {deviceMode !== 'mobile' ? <EditorTitle /> : null}</View><Viewstyle={{diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js b/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.jsindex cb71fbc10..3bea03b6c 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/coloritem.js@@ -84,7 +84,7 @@ const ColorItem = ({value, format}) => {alignItems: 'center',backgroundColor: selected ? 'rgba(0,0,0,0.1)' : 'transparent'}}>- {selected && <Icon name="check" size={SIZE.lg} color="white" />}+ {selected? <Icon name="check" size={SIZE.lg} color="white" /> : null}</View></TouchableOpacity>);diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.jsindex 835fe29a8..da9583163 100644--- a/apps/mobile/src/views/Settings/index.js+++ b/apps/mobile/src/views/Settings/index.js@@ -229,7 +229,7 @@ export const Settings = ({navigation}) => {<SettingsAppearanceSection />- {Platform.OS === 'android' && <SettingsGeneralOptions />}+ {Platform.OS === 'android' ? <SettingsGeneralOptions /> : null}<SettingsPrivacyAndSecurity />