Skip to content
Snippets Groups Projects
Commit 49ac3b2a authored by Iosif Boanca's avatar Iosif Boanca
Browse files

Merge branch 'HIN-982-fixes' into 'develop'

fix(country-list): display country dropdown on signUp

See merge request !80
parents a4412ef6 c281f4bb
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!80fix(country-list): display country dropdown on signUp
......@@ -9,8 +9,6 @@ const countryMapper = c => {
return 'SRB'
case 'ME':
return 'MNT'
case 'CG':
return 'CD'
default:
return c
}
......@@ -24,8 +22,6 @@ const codeMapper = c => {
return 'RS'
case 'MNT':
return 'ME'
case 'CD':
return 'CG'
default:
return c
}
......
......@@ -12,6 +12,7 @@ import {
Label,
ActionLink,
ItemOverrideAlert,
withCountries,
} from 'pubsweet-component-faraday-ui'
const AgreeCheckbox = ({ value, onChange }) => (
......@@ -73,7 +74,13 @@ const Step0 = ({
<ItemOverrideAlert ml={1} vertical>
<Label required>Country</Label>
<ValidatedField
component={TextField}
component={input => (
<Menu
{...input}
options={countries}
placeholder="Please select"
/>
)}
name="country"
validate={[requiredValidator]}
/>
......@@ -128,9 +135,11 @@ const Step0 = ({
)
export default compose(
withCountries,
reduxForm({
form: 'signUpInvitation',
destroyOnUnmount: false,
forceUnregisterOnUnmount: true,
enableReinitialize: true,
}),
)(Step0)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment