panel css buldled and form redirects

This commit is contained in:
realaravinth
2021-04-15 10:25:23 +05:30
parent 06815469b7
commit f6663acbc7
8 changed files with 437 additions and 357 deletions

View File

@@ -1,4 +1,5 @@
import ROUTES from '../../api/v1/routes';
import VIEWS from '../../views/v1/routes';
import isBlankString from '../../utils/genJsonPayload';
import genJsonPayload from '../../utils/genJsonPayload';
@@ -19,6 +20,7 @@ const login = e => {
fetch(ROUTES.loginUser, genJsonPayload(payload)).then(res => {
if (res.ok) {
alert('success');
window.location.assign(VIEWS.panelHome);
} else {
res.json().then(err => alert(`error: ${err.error}`));
}