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
add GetPremium Dialog to ActionSheet
ammarahm-ed9079779805b9
diff --git a/apps/mobile/src/components/ActionSheet/index.js b/apps/mobile/src/components/ActionSheet/index.jsindex fae6e2ccb..97d2abc92 100644--- a/apps/mobile/src/components/ActionSheet/index.js+++ b/apps/mobile/src/components/ActionSheet/index.js@@ -499,6 +499,7 @@ export default class ActionSheet extends Component {width: '100%',},]}>+ {this.props.premium}<FlatListbounces={false}keyboardShouldPersistTaps={keyboardShouldPersistTaps}diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex b51a9f0fc..887a6efb0 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -480,7 +480,7 @@ export const ActionSheetComponent = ({backgroundColor: colors.bg,paddingHorizontal: 0,}}>- <GetPremium context="sheet" close={close} offset={-110} />+{!note.id && !note.dateCreated ? (<Paragraph style={{marginVertical: 10}}>Start writing to save your note.diff --git a/apps/mobile/src/components/DialogManager/index.js b/apps/mobile/src/components/DialogManager/index.jsindex e63374ce8..3a949a5e4 100644--- a/apps/mobile/src/components/DialogManager/index.js+++ b/apps/mobile/src/components/DialogManager/index.js@@ -41,11 +41,12 @@ import RecoveryKeyDialog from '../RecoveryKeyDialog';import RestoreDialog from '../RestoreDialog';import {VaultDialog} from '../VaultDialog';import {TEMPLATE_DELETE, TEMPLATE_PERMANANT_DELETE} from './Templates';-import {hexToRGBA} from "../../utils/ColorUtils";-import {DDS} from "../../services/DeviceDetection";+import {hexToRGBA} from '../../utils/ColorUtils';+import {DDS} from '../../services/DeviceDetection';import ResultDialog from '../ResultDialog';-import SortDialog from "../SortDialog";+import SortDialog from '../SortDialog';import JumpToDialog from '../JumpToDialog';+import {GetPremium,translatePrem} from '../ActionSheetComponent/GetPremium';export class DialogManager extends Component {constructor(props) {@@ -285,7 +286,7 @@ export class DialogManager extends Component {containerStyle={{backgroundColor: colors.bg,width: DDS.isTab ? 500 : '100%',- alignSelf:'center',+ alignSelf: 'center',borderRadius: 10,marginBottom: DDS.isTab ? 50 : 0,}}@@ -295,6 +296,13 @@ export class DialogManager extends Component {? hexToRGBA(colors.accent + '19'): hexToRGBA(colors.shade)}+ premium={+ <GetPremium+ context="sheet"+ close={() => this.actionSheet._hideModal()}+ offset={50}+ />+ }keyboardShouldPersistTaps="always"delayActionSheetDraw={true}delayActionSheetDrawTime={10}@@ -312,6 +320,7 @@ export class DialogManager extends Component {bounceOnOpen={true}gestureEnabled={true}onClose={() => {+ translatePrem.setValue(-800)this.onActionSheetHide();}}><ActionSheetComponent@@ -366,13 +375,12 @@ export class DialogManager extends Component {<PendingDialog colors={colors} /><PremiumStatusDialog /><ProgressDialog />- <RestoreDialog/>- <ResultDialog/>+ <RestoreDialog />+ <ResultDialog /><VaultDialog colors={colors} /><MoveNoteDialog colors={colors} /><SortDialog colors={colors} />- <JumpToDialog/>-+ <JumpToDialog /></>);}