removed unused action types

This commit is contained in:
Akinwale Ariwodola 2017-08-15 15:59:38 +01:00
parent fe5ba7cb9e
commit 4ea5e8b937
2 changed files with 2 additions and 6 deletions

View file

@ -298,10 +298,8 @@ export function doClearCache() {
}
export function doChangeLanguage(newLanguage) {
app.i18n.setLocale(newLanguage);
return {
type: types.CHANGE_LANGUAGE,
data: { newLanguage: newLanguage },
return function(dispatch, getState) {
app.i18n.setLocale(newLanguage);
};
}

View file

@ -115,8 +115,6 @@ export const CLAIM_REWARD_CLEAR_ERROR = "CLAIM_REWARD_CLEAR_ERROR";
export const FETCH_REWARD_CONTENT_COMPLETED = "FETCH_REWARD_CONTENT_COMPLETED";
//Language
export const CHANGE_LANGUAGE = "CHANGE_LANGUAGE";
export const LANGUAGE_CHANGED = "LANGUAGE_CHANGED";
export const LANGUAGE_RESOLVED = "LANGUAGE_RESOLVED";
export const DOWNLOAD_LANGUAGE_STARTED = "DOWNLOAD_LANGUAGE_STARTED";
export const DOWNLOAD_LANGUAGE_SUCCEEDED = "DOWNLOAD_LANGUAGE_SUCCEEDED";