@@ -2,7 +2,7 @@ import React from 'react';
22import { getBlankData , findMatchingSubschemaIndex , dataObjectMatchesSchema ,
33 dataArrayMatchesSchema } from './data' ;
44import { Button , FormInput , FormCheckInput , FormRadioInput , FormSelectInput ,
5- FormFileInput , FormRow , FormGroup , GroupTitle , FormRowControls , FormTextareaInput ,
5+ FormFileInput , FormRow , FormGroup , GroupTitle , GroupDescription , FormRowControls , FormTextareaInput ,
66 FormDateTimeInput , FormMultiSelectInput , FileUploader , AutoCompleteInput } from './components' ;
77import { getVerboseName , convertType , getCoordsFromName , getKeyword , normalizeKeyword ,
88 joinCoords , splitCoords , actualType , getSchemaType , isEqualset , isSubset } from './util' ;
@@ -326,6 +326,7 @@ export function getArrayFormRow(args) {
326326 groupError = [ groupError ] ;
327327
328328 let groupTitle = schema . title ? < GroupTitle editable = { args . editable } onEdit = { args . onKeyEdit } > { schema . title } </ GroupTitle > : null ;
329+ let groupDescription = schema . description ? < GroupDescription > { schema . description } </ GroupDescription > : null ;
329330
330331 groups = (
331332 < div key = { 'group_' + name } className = "rjf-form-group-wrapper" >
@@ -337,6 +338,7 @@ export function getArrayFormRow(args) {
337338 < div className = "rjf-form-group" >
338339 < div className = { level > 0 ? "rjf-form-group-inner" : "" } >
339340 { groupTitle }
341+ { groupDescription }
340342 { groupError && groupError . map ( ( error , i ) => < div className = "rjf-error-text" key = { i } > { error } </ div > ) }
341343 { groups . map ( ( i , index ) => (
342344 < div className = "rjf-form-group-wrapper" key = { 'group_wrapper_' + name + '_' + index } >
0 commit comments