15 lines
320 B
JavaScript
15 lines
320 B
JavaScript
import ACTION_TYPES from './action-types';
|
|
|
|
/**
|
|
* Sets the schema being used to generate the current form layout.
|
|
*
|
|
* @param string schema - JSON schema for the layout.
|
|
*/
|
|
export function setSchema(schema) {
|
|
return (dispatch) =>
|
|
dispatch({
|
|
type: ACTION_TYPES.SET_SCHEMA,
|
|
payload: schema,
|
|
});
|
|
}
|