37 lines
952 B
JavaScript
37 lines
952 B
JavaScript
import { injectIntl, defineMessages } from 'react-intl'
|
|
import { me } from '../../initial_state'
|
|
import Button from '../button'
|
|
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() {
|
|
// : TESTING :
|
|
if (!me) return null
|
|
|
|
const { intl } = this.props
|
|
|
|
return (
|
|
<PanelLayout
|
|
title={intl.formatMessage(messages.title)}
|
|
subtitle={intl.formatMessage(messages.subtitle)}
|
|
>
|
|
<Button href="/auth/sign_up">
|
|
{intl.formatMessage(messages.register)}
|
|
</Button>
|
|
</PanelLayout>
|
|
)
|
|
}
|
|
}
|