update message on account creation

This commit is contained in:
ammarahm-ed
2020-12-28 12:50:02 +05:00
parent c9fe1c59fd
commit 65cecf5cb5

View File

@@ -1,26 +1,27 @@
import React, { createRef } from 'react'; import React, {createRef} from 'react';
import { Clipboard, Platform, View } from 'react-native'; import {Clipboard, Platform, View} from 'react-native';
import QRCode from 'react-native-qrcode-svg'; import QRCode from 'react-native-qrcode-svg';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import RNFetchBlob from 'rn-fetch-blob'; import RNFetchBlob from 'rn-fetch-blob';
import { LOGO_BASE64 } from '../../assets/images/assets'; import {LOGO_BASE64} from '../../assets/images/assets';
import { 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';
import { db } from '../../utils/DB'; import {db} from '../../utils/DB';
import { eOpenRecoveryKeyDialog, eOpenResultDialog } from '../../utils/Events'; import {eOpenRecoveryKeyDialog, eOpenResultDialog} from '../../utils/Events';
import { SIZE } from '../../utils/SizeUtils'; 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 { Button } from '../Button'; import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
import {Button} from '../Button';
import Seperator from '../Seperator'; import Seperator from '../Seperator';
import { Toast } from '../Toast'; import {Toast} from '../Toast';
import Heading from '../Typography/Heading'; import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph'; import Paragraph from '../Typography/Paragraph';
class RecoveryKeyDialog extends React.Component { class RecoveryKeyDialog extends React.Component {
@@ -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>
); );
} }
} }