Beginnings of author details form
1 unresolved thread
1 unresolved thread
Integrates formik and theming.
Merge request reports
Activity
Filter activity
1 1 import React from 'react' 2 import styled from 'styled-components' 2 3 3 export default ({ value }) => ( 4 import { TextField, Button, Heading } from '@pubsweet/ui' 5 6 const Row = styled.div` 7 display: flex; 8 ` 9 10 const Cell = styled.div` 11 flex-grow: 1; 12 ` changed this line in version 2 of the diff
Good question. The validation step itself is handled by the
validate
prop on the<Formik>
component, which takes the values object and returns an object mapping fields to error messages.ValidatedField
is coupled toredux-form
, so we will indeed have to write our own.added 2 commits
Updated to use grid-styled.
Edited by Aanand Prasadenabled an automatic merge when the pipeline for 78edbc76 succeeds
mentioned in commit 1638d3d9