( state: JsonFormsState, ownProps: OwnPropsOfCell )
| 195 | }; |
| 196 | |
| 197 | export const mapStateToDispatchCellProps = ( |
| 198 | state: JsonFormsState, |
| 199 | ownProps: OwnPropsOfCell |
| 200 | ): DispatchCellStateProps => { |
| 201 | const props: StatePropsOfCell = mapStateToCellProps(state, ownProps); |
| 202 | const { renderers: _renderers, cells, ...otherOwnProps } = ownProps; |
| 203 | return { |
| 204 | ...props, |
| 205 | ...otherOwnProps, |
| 206 | cells: cells || state.jsonforms.cells || [], |
| 207 | }; |
| 208 | }; |
| 209 | |
| 210 | export interface DispatchCellProps extends DispatchCellStateProps {} |
| 211 |
no test coverage detected
searching dependent graphs…