mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
update message on account creation
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
|||||||
eSendEvent,
|
eSendEvent,
|
||||||
eSubscribeEvent,
|
eSubscribeEvent,
|
||||||
eUnSubscribeEvent,
|
eUnSubscribeEvent,
|
||||||
ToastEvent
|
ToastEvent,
|
||||||
} from '../../services/EventManager';
|
} from '../../services/EventManager';
|
||||||
import {dWidth} from '../../utils';
|
import {dWidth} from '../../utils';
|
||||||
import {hexToRGBA} from '../../utils/ColorUtils';
|
import {hexToRGBA} from '../../utils/ColorUtils';
|
||||||
@@ -18,6 +18,7 @@ import { SIZE } from '../../utils/SizeUtils';
|
|||||||
import Storage from '../../utils/storage';
|
import Storage from '../../utils/storage';
|
||||||
import {sleep} from '../../utils/TimeUtils';
|
import {sleep} from '../../utils/TimeUtils';
|
||||||
import ActionSheet from '../ActionSheet';
|
import ActionSheet from '../ActionSheet';
|
||||||
|
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
|
||||||
import {Button} from '../Button';
|
import {Button} from '../Button';
|
||||||
import Seperator from '../Seperator';
|
import Seperator from '../Seperator';
|
||||||
import {Toast} from '../Toast';
|
import {Toast} from '../Toast';
|
||||||
@@ -61,8 +62,8 @@ class RecoveryKeyDialog extends React.Component {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
eSendEvent(eOpenResultDialog, {
|
eSendEvent(eOpenResultDialog, {
|
||||||
title: 'Welcome!',
|
title: 'Welcome!',
|
||||||
paragraph: 'Your 14 day trial for Notesnook Pro is activated',
|
paragraph: 'Please verify your email to activate syncing.',
|
||||||
icon: 'checkbox-marked-circle',
|
icon: 'check',
|
||||||
button: 'Thank You!',
|
button: 'Thank You!',
|
||||||
});
|
});
|
||||||
}, 500);
|
}, 500);
|
||||||
@@ -139,23 +140,11 @@ class RecoveryKeyDialog extends React.Component {
|
|||||||
const {colors} = this.props;
|
const {colors} = this.props;
|
||||||
if (!this.state.visible) return null;
|
if (!this.state.visible) return null;
|
||||||
return (
|
return (
|
||||||
<ActionSheet
|
<ActionSheetWrapper
|
||||||
containerStyle={{
|
|
||||||
backgroundColor: colors.bg,
|
|
||||||
width: '100%',
|
|
||||||
alignSelf: 'center',
|
|
||||||
borderRadius: 10,
|
|
||||||
}}
|
|
||||||
indicatorColor={
|
|
||||||
Platform.ios
|
|
||||||
? hexToRGBA(colors.accent + '19')
|
|
||||||
: hexToRGBA(colors.shade)
|
|
||||||
}
|
|
||||||
extraScroll={20}
|
|
||||||
closeOnTouchBackdrop={false}
|
closeOnTouchBackdrop={false}
|
||||||
|
gestureEnabled={false}
|
||||||
onOpen={this.onOpen}
|
onOpen={this.onOpen}
|
||||||
ref={this.actionSheetRef}
|
fwdRef={this.actionSheetRef}>
|
||||||
initialOffsetFromBottom={1}>
|
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
width: dWidth,
|
width: dWidth,
|
||||||
@@ -277,7 +266,7 @@ class RecoveryKeyDialog extends React.Component {
|
|||||||
/>
|
/>
|
||||||
<Toast context="local" />
|
<Toast context="local" />
|
||||||
</View>
|
</View>
|
||||||
</ActionSheet>
|
</ActionSheetWrapper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user