2019-11-24 18:16:25 +01:00
|
|
|
import React, { Component } from 'react'
|
|
|
|
|
2020-01-09 04:34:58 +01:00
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import classnames from 'classnames'
|
|
|
|
import PubNub from 'pubnub'
|
|
|
|
import qrCode from 'qrcode-generator'
|
2019-11-24 18:16:25 +01:00
|
|
|
|
|
|
|
import Button from '../../components/ui/button'
|
|
|
|
import LoadingScreen from '../../components/ui/loading-screen'
|
|
|
|
|
|
|
|
const PASSWORD_PROMPT_SCREEN = 'PASSWORD_PROMPT_SCREEN'
|
|
|
|
const REVEAL_SEED_SCREEN = 'REVEAL_SEED_SCREEN'
|
|
|
|
const KEYS_GENERATION_TIME = 30000
|
2020-03-24 06:00:59 +01:00
|
|
|
const IDLE_TIME = KEYS_GENERATION_TIME * 4
|
2019-11-24 18:16:25 +01:00
|
|
|
|
|
|
|
export default class MobileSyncPage extends Component {
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
|
|
|
}
|
|
|
|
|
|
|
|
static propTypes = {
|
2019-11-24 19:16:57 +01:00
|
|
|
history: PropTypes.object.isRequired,
|
|
|
|
selectedAddress: PropTypes.string.isRequired,
|
|
|
|
displayWarning: PropTypes.func.isRequired,
|
|
|
|
fetchInfoToSync: PropTypes.func.isRequired,
|
2020-06-01 19:54:32 +02:00
|
|
|
mostRecentOverviewPage: PropTypes.string.isRequired,
|
2019-11-24 19:16:57 +01:00
|
|
|
requestRevealSeedWords: PropTypes.func.isRequired,
|
2020-06-26 03:04:17 +02:00
|
|
|
exportAccounts: PropTypes.func.isRequired,
|
|
|
|
keyrings: PropTypes.array,
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
state = {
|
|
|
|
screen: PASSWORD_PROMPT_SCREEN,
|
|
|
|
password: '',
|
|
|
|
seedWords: null,
|
2020-06-26 03:04:17 +02:00
|
|
|
importedAccounts: [],
|
2019-11-24 18:16:25 +01:00
|
|
|
error: null,
|
|
|
|
syncing: false,
|
|
|
|
completed: false,
|
|
|
|
channelName: undefined,
|
|
|
|
cipherKey: undefined,
|
|
|
|
}
|
|
|
|
|
|
|
|
syncing = false
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
componentDidMount() {
|
2019-11-24 18:16:25 +01:00
|
|
|
const passwordBox = document.getElementById('password-box')
|
|
|
|
if (passwordBox) {
|
|
|
|
passwordBox.focus()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
startIdleTimeout() {
|
2020-03-24 06:00:59 +01:00
|
|
|
this.idleTimeout = setTimeout(() => {
|
|
|
|
this.clearTimeouts()
|
|
|
|
this.goBack()
|
|
|
|
}, IDLE_TIME)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
handleSubmit(event) {
|
2019-11-24 18:16:25 +01:00
|
|
|
event.preventDefault()
|
|
|
|
this.setState({ seedWords: null, error: null })
|
2020-11-03 00:41:28 +01:00
|
|
|
this.props
|
|
|
|
.requestRevealSeedWords(this.state.password)
|
2020-02-15 21:34:12 +01:00
|
|
|
.then((seedWords) => {
|
2019-11-24 18:16:25 +01:00
|
|
|
this.startKeysGeneration()
|
2020-03-24 06:00:59 +01:00
|
|
|
this.startIdleTimeout()
|
2020-11-03 00:41:28 +01:00
|
|
|
this.exportAccounts().then((importedAccounts) => {
|
|
|
|
this.setState({
|
|
|
|
seedWords,
|
|
|
|
importedAccounts,
|
|
|
|
screen: REVEAL_SEED_SCREEN,
|
2020-06-26 03:04:17 +02:00
|
|
|
})
|
2020-11-03 00:41:28 +01:00
|
|
|
})
|
2019-11-24 18:16:25 +01:00
|
|
|
})
|
2020-02-15 21:34:12 +01:00
|
|
|
.catch((error) => this.setState({ error: error.message }))
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
async exportAccounts() {
|
2020-06-26 03:04:17 +02:00
|
|
|
const addresses = []
|
|
|
|
this.props.keyrings.forEach((keyring) => {
|
|
|
|
if (keyring.type === 'Simple Key Pair') {
|
|
|
|
addresses.push(keyring.accounts[0])
|
|
|
|
}
|
|
|
|
})
|
2020-11-03 00:41:28 +01:00
|
|
|
const importedAccounts = await this.props.exportAccounts(
|
|
|
|
this.state.password,
|
|
|
|
addresses,
|
|
|
|
)
|
2020-06-26 03:04:17 +02:00
|
|
|
return importedAccounts
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
startKeysGeneration() {
|
2020-03-24 06:00:59 +01:00
|
|
|
this.keysGenerationTimeout && clearTimeout(this.keysGenerationTimeout)
|
2019-11-24 18:16:25 +01:00
|
|
|
this.disconnectWebsockets()
|
|
|
|
this.generateCipherKeyAndChannelName()
|
|
|
|
this.initWebsockets()
|
2020-03-24 06:00:59 +01:00
|
|
|
this.keysGenerationTimeout = setTimeout(() => {
|
2019-11-24 18:16:25 +01:00
|
|
|
this.startKeysGeneration()
|
|
|
|
}, KEYS_GENERATION_TIME)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
goBack() {
|
2020-06-01 19:54:32 +02:00
|
|
|
const { history, mostRecentOverviewPage } = this.props
|
|
|
|
history.push(mostRecentOverviewPage)
|
2020-03-24 06:00:59 +01:00
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
clearTimeouts() {
|
2020-03-24 06:00:59 +01:00
|
|
|
this.keysGenerationTimeout && clearTimeout(this.keysGenerationTimeout)
|
|
|
|
this.idleTimeout && clearTimeout(this.idleTimeout)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
generateCipherKeyAndChannelName() {
|
|
|
|
this.cipherKey = `${this.props.selectedAddress.substr(
|
|
|
|
-4,
|
|
|
|
)}-${PubNub.generateUUID()}`
|
2019-11-24 18:16:25 +01:00
|
|
|
this.channelName = `mm-${PubNub.generateUUID()}`
|
2019-12-03 21:50:55 +01:00
|
|
|
this.setState({ cipherKey: this.cipherKey, channelName: this.channelName })
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
initWithCipherKeyAndChannelName(cipherKey, channelName) {
|
2019-11-24 18:16:25 +01:00
|
|
|
this.cipherKey = cipherKey
|
|
|
|
this.channelName = channelName
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
initWebsockets() {
|
2019-11-24 18:16:25 +01:00
|
|
|
// Make sure there are no existing listeners
|
|
|
|
this.disconnectWebsockets()
|
|
|
|
|
|
|
|
this.pubnub = new PubNub({
|
|
|
|
subscribeKey: process.env.PUBNUB_SUB_KEY,
|
|
|
|
publishKey: process.env.PUBNUB_PUB_KEY,
|
|
|
|
cipherKey: this.cipherKey,
|
|
|
|
ssl: true,
|
|
|
|
})
|
|
|
|
|
|
|
|
this.pubnubListener = {
|
|
|
|
message: (data) => {
|
2019-12-03 21:50:55 +01:00
|
|
|
const { channel, message } = data
|
2019-11-24 18:16:25 +01:00
|
|
|
// handle message
|
|
|
|
if (channel !== this.channelName || !message) {
|
2020-08-12 21:06:57 +02:00
|
|
|
return
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (message.event === 'start-sync') {
|
|
|
|
this.startSyncing()
|
|
|
|
} else if (message.event === 'connection-info') {
|
2020-03-24 06:00:59 +01:00
|
|
|
this.keysGenerationTimeout && clearTimeout(this.keysGenerationTimeout)
|
2019-11-24 18:16:25 +01:00
|
|
|
this.disconnectWebsockets()
|
|
|
|
this.initWithCipherKeyAndChannelName(message.cipher, message.channel)
|
|
|
|
this.initWebsockets()
|
|
|
|
} else if (message.event === 'end-sync') {
|
|
|
|
this.disconnectWebsockets()
|
2019-12-03 21:50:55 +01:00
|
|
|
this.setState({ syncing: false, completed: true })
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
this.pubnub.addListener(this.pubnubListener)
|
|
|
|
|
|
|
|
this.pubnub.subscribe({
|
|
|
|
channels: [this.channelName],
|
|
|
|
withPresence: false,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
disconnectWebsockets() {
|
2019-11-24 18:16:25 +01:00
|
|
|
if (this.pubnub && this.pubnubListener) {
|
|
|
|
this.pubnub.removeListener(this.pubnubListener)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Calculating a PubNub Message Payload Size.
|
2020-11-03 00:41:28 +01:00
|
|
|
calculatePayloadSize(channel, message) {
|
|
|
|
return encodeURIComponent(channel + JSON.stringify(message)).length + 100
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
chunkString(str, size) {
|
2019-11-24 18:16:25 +01:00
|
|
|
const numChunks = Math.ceil(str.length / size)
|
|
|
|
const chunks = new Array(numChunks)
|
2020-11-03 00:41:28 +01:00
|
|
|
let o = 0
|
|
|
|
for (let i = 0; i < numChunks; i += 1) {
|
2019-11-24 18:16:25 +01:00
|
|
|
chunks[i] = str.substr(o, size)
|
2020-08-13 01:06:44 +02:00
|
|
|
o += size
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
return chunks
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
notifyError(errorMsg) {
|
2019-11-24 18:16:25 +01:00
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
this.pubnub.publish(
|
|
|
|
{
|
|
|
|
message: {
|
|
|
|
event: 'error-sync',
|
|
|
|
data: errorMsg,
|
|
|
|
},
|
|
|
|
channel: this.channelName,
|
|
|
|
sendByPost: false, // true to send via post
|
|
|
|
storeInHistory: false,
|
|
|
|
},
|
|
|
|
(status, response) => {
|
2020-08-14 13:47:43 +02:00
|
|
|
if (status.error) {
|
2019-11-24 18:16:25 +01:00
|
|
|
reject(response)
|
2020-08-14 13:47:43 +02:00
|
|
|
} else {
|
|
|
|
resolve()
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
2020-08-19 18:27:05 +02:00
|
|
|
},
|
|
|
|
)
|
2019-11-24 18:16:25 +01:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
async startSyncing() {
|
2019-11-24 18:16:25 +01:00
|
|
|
if (this.syncing) {
|
2020-08-12 21:06:57 +02:00
|
|
|
return
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
this.syncing = true
|
2019-12-03 21:50:55 +01:00
|
|
|
this.setState({ syncing: true })
|
2019-11-24 18:16:25 +01:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
const {
|
|
|
|
accounts,
|
|
|
|
network,
|
|
|
|
preferences,
|
|
|
|
transactions,
|
|
|
|
} = await this.props.fetchInfoToSync()
|
2019-11-24 18:16:25 +01:00
|
|
|
|
|
|
|
const allDataStr = JSON.stringify({
|
|
|
|
accounts,
|
|
|
|
network,
|
|
|
|
preferences,
|
|
|
|
transactions,
|
|
|
|
udata: {
|
|
|
|
pwd: this.state.password,
|
|
|
|
seed: this.state.seedWords,
|
2020-06-26 03:04:17 +02:00
|
|
|
importedAccounts: this.state.importedAccounts,
|
2019-11-24 18:16:25 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
const chunks = this.chunkString(allDataStr, 17000)
|
|
|
|
const totalChunks = chunks.length
|
|
|
|
try {
|
|
|
|
for (let i = 0; i < totalChunks; i++) {
|
|
|
|
await this.sendMessage(chunks[i], i + 1, totalChunks)
|
|
|
|
}
|
|
|
|
} catch (e) {
|
|
|
|
this.props.displayWarning('Sync failed :(')
|
2019-12-03 21:50:55 +01:00
|
|
|
this.setState({ syncing: false })
|
2019-11-24 18:16:25 +01:00
|
|
|
this.syncing = false
|
|
|
|
this.notifyError(e.toString())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
sendMessage(data, pkg, count) {
|
2019-11-24 18:16:25 +01:00
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
this.pubnub.publish(
|
|
|
|
{
|
|
|
|
message: {
|
|
|
|
event: 'syncing-data',
|
|
|
|
data,
|
|
|
|
totalPkg: count,
|
|
|
|
currentPkg: pkg,
|
|
|
|
},
|
|
|
|
channel: this.channelName,
|
|
|
|
sendByPost: false, // true to send via post
|
|
|
|
storeInHistory: false,
|
|
|
|
},
|
|
|
|
(status, response) => {
|
2020-08-14 13:47:43 +02:00
|
|
|
if (status.error) {
|
2019-11-24 18:16:25 +01:00
|
|
|
reject(response)
|
2020-08-14 13:47:43 +02:00
|
|
|
} else {
|
|
|
|
resolve()
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
2020-07-14 17:20:41 +02:00
|
|
|
},
|
2019-11-24 18:16:25 +01:00
|
|
|
)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
componentWillUnmount() {
|
2020-03-24 06:00:59 +01:00
|
|
|
this.clearTimeouts()
|
2019-11-24 18:16:25 +01:00
|
|
|
this.disconnectWebsockets()
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderWarning(text) {
|
2019-11-24 18:16:25 +01:00
|
|
|
return (
|
|
|
|
<div className="page-container__warning-container">
|
|
|
|
<div className="page-container__warning-message">
|
|
|
|
<div>{text}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderContent() {
|
2019-11-24 18:16:25 +01:00
|
|
|
const { syncing, completed, screen } = this.state
|
|
|
|
const { t } = this.context
|
|
|
|
|
|
|
|
if (syncing) {
|
2020-11-03 00:41:28 +01:00
|
|
|
return <LoadingScreen loadingMessage="Sync in progress" />
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (completed) {
|
|
|
|
return (
|
|
|
|
<div className="reveal-seed__content">
|
|
|
|
<label
|
|
|
|
className="reveal-seed__label"
|
|
|
|
style={{
|
|
|
|
width: '100%',
|
|
|
|
textAlign: 'center',
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{t('syncWithMobileComplete')}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
return screen === PASSWORD_PROMPT_SCREEN ? (
|
|
|
|
<div>
|
|
|
|
{this.renderWarning(this.context.t('mobileSyncText'))}
|
|
|
|
<div className="reveal-seed__content">
|
|
|
|
{this.renderPasswordPromptContent()}
|
2019-11-24 18:16:25 +01:00
|
|
|
</div>
|
2020-11-03 00:41:28 +01:00
|
|
|
</div>
|
|
|
|
) : (
|
|
|
|
<div>
|
|
|
|
{this.renderWarning(this.context.t('syncWithMobileBeCareful'))}
|
|
|
|
<div className="reveal-seed__content">
|
|
|
|
{this.renderRevealSeedContent()}
|
2019-11-24 18:16:25 +01:00
|
|
|
</div>
|
2020-11-03 00:41:28 +01:00
|
|
|
</div>
|
|
|
|
)
|
2019-11-24 18:16:25 +01:00
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderPasswordPromptContent() {
|
2019-11-24 18:16:25 +01:00
|
|
|
const { t } = this.context
|
|
|
|
|
|
|
|
return (
|
2020-02-15 21:34:12 +01:00
|
|
|
<form onSubmit={(event) => this.handleSubmit(event)}>
|
2019-11-24 18:16:25 +01:00
|
|
|
<label className="input-label" htmlFor="password-box">
|
|
|
|
{t('enterPasswordContinue')}
|
|
|
|
</label>
|
|
|
|
<div className="input-group">
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
placeholder={t('password')}
|
|
|
|
id="password-box"
|
|
|
|
value={this.state.password}
|
2020-11-03 00:41:28 +01:00
|
|
|
onChange={(event) =>
|
|
|
|
this.setState({ password: event.target.value })
|
|
|
|
}
|
2019-11-24 18:16:25 +01:00
|
|
|
className={classnames('form-control', {
|
|
|
|
'form-control--error': this.state.error,
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
{this.state.error && (
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="reveal-seed__error">{this.state.error}</div>
|
2019-11-24 18:16:25 +01:00
|
|
|
)}
|
|
|
|
</form>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderRevealSeedContent() {
|
2019-11-24 18:16:25 +01:00
|
|
|
const qrImage = qrCode(0, 'M')
|
2020-11-03 00:41:28 +01:00
|
|
|
qrImage.addData(
|
|
|
|
`metamask-sync:${this.state.channelName}|@|${this.state.cipherKey}`,
|
|
|
|
)
|
2019-11-24 18:16:25 +01:00
|
|
|
qrImage.make()
|
|
|
|
|
|
|
|
const { t } = this.context
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<label
|
|
|
|
className="reveal-seed__label"
|
|
|
|
style={{
|
|
|
|
width: '100%',
|
|
|
|
textAlign: 'center',
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{t('syncWithMobileScanThisCode')}
|
|
|
|
</label>
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'center',
|
|
|
|
}}
|
|
|
|
dangerouslySetInnerHTML={{
|
|
|
|
__html: qrImage.createTableTag(4),
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderFooter() {
|
2019-11-24 18:16:25 +01:00
|
|
|
return this.state.screen === PASSWORD_PROMPT_SCREEN
|
|
|
|
? this.renderPasswordPromptFooter()
|
|
|
|
: this.renderRevealSeedFooter()
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderPasswordPromptFooter() {
|
2019-11-24 18:16:25 +01:00
|
|
|
const { t } = this.context
|
|
|
|
const { password } = this.state
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="new-account-import-form__buttons" style={{ padding: 30 }}>
|
|
|
|
<Button
|
|
|
|
type="default"
|
|
|
|
large
|
|
|
|
className="new-account-create-form__button"
|
2020-03-24 06:00:59 +01:00
|
|
|
onClick={() => this.goBack()}
|
2019-11-24 18:16:25 +01:00
|
|
|
>
|
|
|
|
{t('cancel')}
|
|
|
|
</Button>
|
|
|
|
<Button
|
|
|
|
type="secondary"
|
|
|
|
large
|
|
|
|
className="new-account-create-form__button"
|
2020-02-15 21:34:12 +01:00
|
|
|
onClick={(event) => this.handleSubmit(event)}
|
2019-11-24 18:16:25 +01:00
|
|
|
disabled={password === ''}
|
|
|
|
>
|
|
|
|
{t('next')}
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
renderRevealSeedFooter() {
|
2019-11-24 18:16:25 +01:00
|
|
|
const { t } = this.context
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="page-container__footer" style={{ padding: 30 }}>
|
|
|
|
<Button
|
|
|
|
type="default"
|
|
|
|
large
|
|
|
|
className="page-container__footer-button"
|
2020-03-24 06:00:59 +01:00
|
|
|
onClick={() => this.goBack()}
|
2019-11-24 18:16:25 +01:00
|
|
|
>
|
|
|
|
{t('close')}
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2019-11-24 18:16:25 +01:00
|
|
|
const { t } = this.context
|
|
|
|
const { screen } = this.state
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="page-container">
|
|
|
|
<div className="page-container__header">
|
|
|
|
<div className="page-container__title">
|
|
|
|
{t('syncWithMobileTitle')}
|
|
|
|
</div>
|
2020-11-03 00:41:28 +01:00
|
|
|
{screen === PASSWORD_PROMPT_SCREEN ? (
|
|
|
|
<div className="page-container__subtitle">
|
|
|
|
{t('syncWithMobileDesc')}
|
|
|
|
</div>
|
|
|
|
) : null}
|
|
|
|
{screen === PASSWORD_PROMPT_SCREEN ? (
|
|
|
|
<div className="page-container__subtitle">
|
|
|
|
{t('syncWithMobileDescNewUsers')}
|
|
|
|
</div>
|
|
|
|
) : null}
|
2019-11-24 18:16:25 +01:00
|
|
|
</div>
|
2020-11-03 00:41:28 +01:00
|
|
|
<div className="page-container__content">{this.renderContent()}</div>
|
2019-11-24 18:16:25 +01:00
|
|
|
{this.renderFooter()}
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|