diff --git a/src/components/BottomModal/BottomModal.js b/src/components/BottomModal/BottomModal.js index 4531aaa..1e57f88 100644 --- a/src/components/BottomModal/BottomModal.js +++ b/src/components/BottomModal/BottomModal.js @@ -57,7 +57,7 @@ const BottomModal = ({title, tableHeader, tableData, closeModal, isReady}) => { return (
# | {tableHeader && tableHeader.length > 0 && tableHeader.map((item, idx) => ( diff --git a/src/views/Pages/Login/Login.js b/src/views/Pages/Login/Login.js index d788e92..98bb45d 100644 --- a/src/views/Pages/Login/Login.js +++ b/src/views/Pages/Login/Login.js @@ -108,7 +108,14 @@ class Login extends Component { let resData = result.data.data window.localStorage.setItem('menu_login', JSON.stringify(resData)); this.setState({ loader: false }) - this.props.history.push("/dashboard"); + // custom redirect home after login + if (role_id == 28) { + this.props.history.push(`/dashboard-customer/37/48`); + } + else { + this.props.history.push("/dashboard"); + } + } else { NotificationManager.error('Login Failed', 'Failed'); this.setState({ loader: false })
---|