( Component: ComponentType<ControlProps & OwnPropsOfEnum> )
| 657 | }; |
| 658 | |
| 659 | const withContextToEnumProps = ( |
| 660 | Component: ComponentType<ControlProps & OwnPropsOfEnum> |
| 661 | ): ComponentType<OwnPropsOfControl & OwnPropsOfEnum> => |
| 662 | function WithContextToEnumProps({ |
| 663 | ctx, |
| 664 | props, |
| 665 | }: JsonFormsStateContext & ControlProps & OwnPropsOfEnum) { |
| 666 | const stateProps = ctxToEnumControlProps(ctx, props); |
| 667 | const dispatchProps = ctxDispatchToControlProps(ctx.dispatch); |
| 668 | |
| 669 | return <Component {...props} {...dispatchProps} {...stateProps} />; |
| 670 | }; |
| 671 | |
| 672 | const withContextToOneOfEnumCellProps = ( |
| 673 | Component: ComponentType<EnumCellProps> |
no test coverage detected
searching dependent graphs…