import React from 'react'; import { NewTabLink } from 'components/ui'; import { discordURL } from 'config'; import './index.scss'; const LS_KEY = 'acknowledged-beta'; interface State { isFading: boolean; hasAcknowledged: boolean; } export default class BetaAgreement extends React.PureComponent<{}, State> { public state = { hasAcknowledged: !!localStorage.getItem(LS_KEY), isFading: false }; public render() { if (this.state.hasAcknowledged) { return null; } const isFading = this.state.isFading ? 'is-fading' : ''; return (

Welcome to the New MyCrypto Beta!

You are about to use a version of MyCrypto that hasn't been released yet. While we are confident that it is close to being production ready, you may want to use the current production site for larger or more time-sensitive transactions.

Feedback and bug reports are greatly appreciated. You can file issues on our{' '} GitHub repository {' '} or join our Discord server to discuss the beta.

Are you sure you would like to continue?

); } private doContinue = () => { localStorage.setItem(LS_KEY, 'true'); this.setState({ isFading: true }); setTimeout(() => { this.setState({ hasAcknowledged: true }); }, 1000); }; private reject = () => { window.location.assign('https://mycrypto.com'); }; }