mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-16 09:41:38 +02:00
15 lines
270 B
JavaScript
15 lines
270 B
JavaScript
import ACTION_TYPES from './action-types';
|
|
|
|
/**
|
|
* Sets global config for the application.
|
|
*
|
|
* @param object config
|
|
*/
|
|
export function setConfig(config) {
|
|
return (dispatch) =>
|
|
dispatch({
|
|
type: ACTION_TYPES.SET_CONFIG,
|
|
payload: { config },
|
|
});
|
|
}
|