Updated FieldProps.children to be ReactNode to support an array. Fixed syntax as well.

This commit is contained in:
Eric Blackburn
2020-08-05 17:15:09 -05:00
parent 797d95b3f8
commit e77d094e62

View File

@@ -2,9 +2,9 @@ import './field.scss';
import React from 'react';
type FieldProps = {
name: string
value: string | null
children: React.ReactNode | null
name: string;
value: string | null;
children: React.ReactNode[] | null;
}
const Field = ({name, value, children}: FieldProps) => (