( Component: ComponentType<LayoutProps> )
| 525 | }; |
| 526 | |
| 527 | const withContextToLayoutProps = ( |
| 528 | Component: ComponentType<LayoutProps> |
| 529 | ): ComponentType<OwnPropsOfJsonFormsRenderer> => |
| 530 | function WithContextToLayoutProps({ |
| 531 | ctx, |
| 532 | props, |
| 533 | }: JsonFormsStateContext & LayoutProps) { |
| 534 | const layoutProps = ctxToLayoutProps(ctx, props); |
| 535 | return <Component {...props} {...layoutProps} />; |
| 536 | }; |
| 537 | |
| 538 | const withContextToOneOfProps = ( |
| 539 | Component: ComponentType<CombinatorRendererProps> |
no test coverage detected
searching dependent graphs…