Add basic listing of server schedules

This commit is contained in:
Dane Everitt 2020-02-08 15:23:08 -08:00
parent f9ec96c70a
commit 32e9fb0346
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
21 changed files with 508 additions and 79 deletions

View file

@ -1,5 +1,5 @@
import React from 'react';
import { Field, FieldProps } from 'formik';
import { Field as FormikField, FieldProps } from 'formik';
import classNames from 'classnames';
interface OwnProps {
@ -11,8 +11,8 @@ interface OwnProps {
type Props = OwnProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'name'>;
export default ({ id, name, label, description, validate, className, ...props }: Props) => (
<Field name={name} validate={validate}>
const Field = ({ id, name, label, description, validate, className, ...props }: Props) => (
<FormikField name={name} validate={validate}>
{
({ field, form: { errors, touched } }: FieldProps) => (
<React.Fragment>
@ -37,5 +37,7 @@ export default ({ id, name, label, description, validate, className, ...props }:
</React.Fragment>
)
}
</Field>
</FormikField>
);
export default Field;