Skip to content
Snippets Groups Projects
Commit 80f35e31 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

feat(adminUserForm): implement changes after CR

parent dd448794
No related branches found
No related tags found
3 merge requests!233S26 updates,!230S26 Updates,!223Admin formik
import React from 'react'
import { Field } from 'formik'
import { MenuCountry } from './'
const FormikMenuCountry = ({ name }) => (
<Field name={name}>
{({ field, form }) => (
<MenuCountry
onChange={v => {
// field.onChange(v)
form.setFieldValue(field.name, v)
}}
value={field.value}
/>
)}
</Field>
)
export default FormikMenuCountry
...@@ -52,7 +52,6 @@ export { default as ReviewerReportAuthor } from './ReviewerReportAuthor' ...@@ -52,7 +52,6 @@ export { default as ReviewerReportAuthor } from './ReviewerReportAuthor'
export { default as PasswordValidation } from './PasswordValidation' export { default as PasswordValidation } from './PasswordValidation'
export { default as MenuCountry } from './MenuCountry' export { default as MenuCountry } from './MenuCountry'
export { default as ValidatedFormField } from './ValidatedFormField' export { default as ValidatedFormField } from './ValidatedFormField'
export { default as FormikMenuCountry } from './FormikMenuCountry'
export { SubmitRevision } from './submissionRevision' export { SubmitRevision } from './submissionRevision'
......
...@@ -46,9 +46,6 @@ const validate = values => { ...@@ -46,9 +46,6 @@ const validate = values => {
} }
// #endregion // #endregion
const min3 = value => (value.toString().length < 4 ? 'Too short!' : '')
const max6 = value => (value.toString().length > 6 ? 'Too long!' : '')
const FormModal = ({ const FormModal = ({
edit, edit,
roles, roles,
......
...@@ -51,7 +51,7 @@ module.exports = { ...@@ -51,7 +51,7 @@ module.exports = {
API_ENDPOINT: '/api', API_ENDPOINT: '/api',
baseUrl: process.env.CLIENT_BASE_URL || 'http://localhost:3000', baseUrl: process.env.CLIENT_BASE_URL || 'http://localhost:3000',
'login-redirect': '/', 'login-redirect': '/',
'redux-log': false, //process.env.NODE_ENV !== 'production', 'redux-log': process.env.NODE_ENV !== 'production',
theme: process.env.PUBSWEET_THEME, theme: process.env.PUBSWEET_THEME,
}, },
orcid: { orcid: {
......
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