import React, {PureComponent} from 'react'; import autobind from 'autobind-decorator'; import * as session from '../../../sync/session'; import * as sync from '../../../sync/index'; import Link from '../base/link'; import LoginModal from '../modals/login-modal'; import {hideAllModals, showModal} from '../modals/index'; @autobind class Account extends PureComponent { async _handleLogout () { await sync.logout(); this.forceUpdate(); } _handleLogin (e) { e.preventDefault(); hideAllModals(); showModal(LoginModal); } renderUpgrade () { return (
🚀 Sync your data across devices or with a team
🚀 Keep synced data safe with end-to-end encryption
🚀 Access to premium color themes
🚀 Prioritized email support
Or Login
You are currently logged in as
{' '}
{session.getEmail()}