update reason or joining form to simpletextarea
This commit is contained in:
parent
4ce5ba6c1a
commit
774adf9baa
2 changed files with 5 additions and 4 deletions
|
@ -70,7 +70,7 @@ LabelInput.propTypes = {
|
|||
|
||||
export const LabelTextarea = ({ label, dispatch, ...props }) => (
|
||||
<LabelInputContainer label={label}>
|
||||
<intextarea {...props} />
|
||||
<textarea {...props} />
|
||||
</LabelInputContainer>
|
||||
);
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import {
|
|||
SimpleForm,
|
||||
SimpleInput,
|
||||
TextInput,
|
||||
SimpleTextarea,
|
||||
Checkbox,
|
||||
} from 'soapbox/features/forms';
|
||||
import { register } from 'soapbox/actions/auth';
|
||||
|
@ -24,7 +25,6 @@ const messages = defineMessages({
|
|||
confirm: { id: 'registration.fields.confirm_placeholder', defaultMessage: 'Password (again)' },
|
||||
agreement: { id: 'registration.agreement', defaultMessage: 'I agree to the {tos}.' },
|
||||
tos: { id: 'registration.tos', defaultMessage: 'Terms of Service' },
|
||||
reason: { id: 'registration.reason', defaultMessage: 'Reason for Joining' },
|
||||
});
|
||||
|
||||
const mapStateToProps = (state, props) => ({
|
||||
|
@ -138,8 +138,9 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
required
|
||||
/>
|
||||
{instance.get('approval_required') &&
|
||||
<TextInput
|
||||
placeholder={intl.formatMessage(messages.reason)}
|
||||
<SimpleTextarea
|
||||
label={<FormattedMessage id='registration.reason' defaultMessage='Why do you want to join?' />}
|
||||
hint={<FormattedMessage id='registration.reason_hint' defaultMessage='This will help us review your application' />}
|
||||
name='reason'
|
||||
maxLength={500}
|
||||
autoComplete='off'
|
||||
|
|
Loading…
Reference in a new issue