refactor: Creating Medias reducer

This commit is contained in:
Cássio Zen
2016-06-10 00:16:01 -03:00
parent 9275aaec90
commit 1ba98fdb5a
21 changed files with 130 additions and 121 deletions

View File

@ -1,7 +1,7 @@
import yaml from 'js-yaml';
import { currentBackend } from '../backends/backend';
import { authenticate } from '../actions/auth';
import * as ImageProxy from '../valueObjects/ImageProxy';
import * as MediaProxy from '../valueObjects/MediaProxy';
export const CONFIG_REQUEST = 'CONFIG_REQUEST';
export const CONFIG_SUCCESS = 'CONFIG_SUCCESS';
@ -30,7 +30,7 @@ export function configFailed(err) {
export function configDidLoad(config) {
return (dispatch) => {
ImageProxy.setConfig(config);
MediaProxy.setConfig(config);
dispatch(configLoaded(config));
};
}