File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
src/pods/canvas/components/canvas-accessible/components Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,18 @@ interface Props {
88}
99
1010export const Field : React . FC < Props > = props => {
11- const { field, listName } = props ;
11+ const { field } = props ;
1212
1313 const renderNNElement = ( NN ?: boolean ) => {
14- if ( NN ) return < span > NN</ span > ;
14+ if ( NN ) return < span > Not Null</ span > ;
15+ } ;
16+ const renderArrayElement = ( isArray ?: boolean ) => {
17+ if ( isArray )
18+ return (
19+ < >
20+ < span > array</ span >
21+ </ >
22+ ) ;
1523 } ;
1624
1725 const renderChildrenElement = ( name : string , children ?: FieldVm [ ] ) => {
@@ -20,9 +28,10 @@ export const Field: React.FC<Props> = props => {
2028 } ;
2129
2230 return (
23- < li aria-label = { `${ listName } field` } >
24- < span > { field . name } </ span >
25- < span > { field . type } </ span >
31+ < li >
32+ < span > { field . name } </ span >
33+ < span > { field . type } </ span >
34+ { renderArrayElement ( field . isArray ) }
2635 { renderNNElement ( field . isNN ) }
2736 { renderChildrenElement ( field . name , field . children ) }
2837 </ li >
You can’t perform that action at this time.
0 commit comments