import React from 'react'; import translate from 'translations'; import { Modal, NewTabLink } from 'components/ui'; import { isLegacyUser, isBetaUser } from 'utils/localStorage'; import Logo from 'assets/images/logo-mycrypto-transparent.svg'; import './WelcomeModal.scss'; const LS_KEY = 'acknowledged-welcome'; interface State { isOpen: boolean; } export default class WelcomeModal extends React.Component<{}, State> { public state: State = { isOpen: false }; public componentDidMount() { if (isLegacyUser() && !localStorage.getItem(LS_KEY)) { this.setState({ isOpen: true }); } } public render() { return (
{isBetaUser() && (

💖 {translate('WELCOME_MODAL_BETA')} 🚀

)}

{translate('WELCOME_MODAL_INTRO')}

{translate('WELCOME_MODAL_LINKS')}

); } private close = () => { this.setState({ isOpen: false }); localStorage.setItem(LS_KEY, 'true'); }; }