import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { FormattedMessage as Message } from 'react-intl'; import Helmet from 'react-helmet'; import { Button } from 'components/ui/form'; import copy from 'services/copy'; import messages from './Finish.intl.json'; import styles from './finish.scss'; class Finish extends Component { static displayName = 'Finish'; static propTypes = { appName: PropTypes.string.isRequired, code: PropTypes.string.isRequired, state: PropTypes.string.isRequired, displayCode: PropTypes.bool, success: PropTypes.bool, }; render() { const { appName, code, state, displayCode, success } = this.props; const authData = JSON.stringify({ auth_code: code, // eslint-disable-line state, }); history.pushState(null, null, `#${authData}`); return (