import React from 'react'; import moment from 'moment'; import { discordURL, APP_ALPHA_EXPIRATION } from 'config'; import { NewTabLink } from 'components/ui'; import './AlphaNotice.scss'; interface State { isFading: boolean; isClosed: boolean; } let hasAcknowledged = false; export default class AppAlphaNotice extends React.PureComponent<{}, State> { public state = { isFading: false, isClosed: hasAcknowledged }; public render() { if (this.state.isClosed) { return null; } const isFading = this.state.isFading ? 'is-fading' : ''; const expDate = moment(APP_ALPHA_EXPIRATION).format('MMMM Do, YYYY'); return (

Welcome to the MyCrypto Desktop App Alpha

Thank you for testing out the new MyCrypto desktop app. This is an early release to be tested by the community before a full launch. We recommend continuing to use the production site for large or otherwise important transactions.

Because this is for testing purposes only,{' '} this build of the app will only be accessible until {expDate}. You’ll then be required to update the application to continue using it.

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

For critical reports & vulnerabilities, please use{' '} HackerOne.

); } private doContinue = () => { hasAcknowledged = true; this.setState({ isFading: true }); setTimeout(() => { this.setState({ isClosed: true }); }, 1000); }; }