(dispatch: Dispatch<AnyAction>)
| 37 | |
| 38 | export const onChange = |
| 39 | (dispatch: Dispatch<AnyAction>) => |
| 40 | (extensionState: any) => |
| 41 | ({ errors }: Pick<JsonFormsCore, 'data' | 'errors'>) => { |
| 42 | if (!extensionState) { |
| 43 | return; |
| 44 | } |
| 45 | const localiseFunc = |
| 46 | localize[extensionState.locale.split('-')[0] as keyof typeof localize]; |
| 47 | localiseFunc(errors); |
| 48 | dispatch(updateErrors(errors)); |
| 49 | }; |
| 50 | |
| 51 | export const uischema = { |
| 52 | type: 'VerticalLayout', |
no test coverage detected
searching dependent graphs…