Continuing updating the reformatting of propTypes and set redux, intl functions to end of component
Continuing updating the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
@@ -6,22 +6,8 @@ import ModalLayout from './modal_layout'
|
||||
import Text from '../text'
|
||||
import Button from '../button'
|
||||
|
||||
const messages = defineMessages({
|
||||
signup: { id: 'unauthorized_modal.title', defaultMessage: 'Sign up for Gab' },
|
||||
text: { id: 'unauthorized_modal.text', defaultMessage: 'You need to be logged in to do that.' },
|
||||
register: { id: 'account.register', defaultMessage: 'Sign up' },
|
||||
login: { id: 'account.login', defaultMessage: 'Log in' },
|
||||
})
|
||||
|
||||
export default
|
||||
@injectIntl
|
||||
class UnauthorizedModal extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
onClose: PropTypes.func.isRequired,
|
||||
}
|
||||
|
||||
render() {
|
||||
const { intl, onClose } = this.props
|
||||
|
||||
@@ -62,4 +48,18 @@ class UnauthorizedModal extends ImmutablePureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
const messages = defineMessages({
|
||||
signup: { id: 'unauthorized_modal.title', defaultMessage: 'Sign up for Gab' },
|
||||
text: { id: 'unauthorized_modal.text', defaultMessage: 'You need to be logged in to do that.' },
|
||||
register: { id: 'account.register', defaultMessage: 'Sign up' },
|
||||
login: { id: 'account.login', defaultMessage: 'Log in' },
|
||||
})
|
||||
|
||||
UnauthorizedModal.propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
onClose: PropTypes.func.isRequired,
|
||||
}
|
||||
|
||||
export default injectIntl(UnauthorizedModal)
|
||||
Reference in New Issue
Block a user