Skip to content

Commit c6e7f43

Browse files
committed
Replace JsonSchema7 with more generic JsonSchema type in tree example
1 parent 0d168fb commit c6e7f43

File tree

1 file changed

+3
-3
lines changed
  • packages/material-tree-renderer/example

1 file changed

+3
-3
lines changed

packages/material-tree-renderer/example/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as _ from 'lodash';
55
import {
66
Actions,
77
jsonformsReducer,
8-
JsonSchema7,
8+
JsonSchema,
99
NOT_APPLICABLE,
1010
UISchemaElement,
1111
UISchemaTester
@@ -52,7 +52,7 @@ const isTask = schema => _.has(schema.properties, 'done');
5252
const isUser = schema => _.has(schema.properties, 'birthday');
5353

5454
const calculateLabel =
55-
(schema: JsonSchema7) => (element: any): string => {
55+
(schema: JsonSchema) => (element: any): string => {
5656

5757
if (isUserGroup(schema)) {
5858
return `User Group ${element.label || ''}`;
@@ -69,7 +69,7 @@ const calculateLabel =
6969
return 'Unknown';
7070
};
7171

72-
const imageGetter = (schema: JsonSchema7) => {
72+
const imageGetter = (schema: JsonSchema) => {
7373

7474
if (isTask(schema)) {
7575
return 'icon task';

0 commit comments

Comments
 (0)