Color and I18n support

This commit is contained in:
oitsjustjose 2022-04-17 22:31:41 -05:00
commit ba82c13fe1
19 changed files with 630 additions and 303 deletions

View file

@ -13,10 +13,10 @@ const decodeAndDispatch = async (token) => {
if (resp.status === 410 && window.localStorage.getItem('auth-token')) {
window.localStorage.removeItem('auth-token');
}
store.dispatch({ type: 'SET_ALERT', data: { header: 'Login Is Invalid', content: resp.error } });
window.location.href = '/login?invalidOrExpired=true';
}
} catch (ex) {
store.dispatch({ type: 'SET_ALERT', data: { header: 'Login Is Invalid', content: ex } });
window.location.href = '/login?invalidOrExpired=true';
}
};