import { injectIntl, defineMessages } from 'react-intl'; import { me } from '../../initial_state'; import PanelLayout from './panel_layout'; const messages = defineMessages({ title: { id: 'signup_panel.title', defaultMessage: 'New to Gab?' }, subtitle: { id: 'signup_panel.subtitle', defaultMessage: 'Sign up now to speak freely.' }, register: { id: 'account.register', defaultMessage: 'Sign up?' }, }); export default @injectIntl class SignUpPanel extends PureComponent { static propTypes = { intl: PropTypes.object.isRequired, } render() { if (me) return null; const { intl } = this.props; return ( {intl.formatMessage(messages.subtitle)}
{intl.formateMessage(messages.register)}
) } }