Fix links in login page
This commit is contained in:
1 parent
7d1e7ccb94
commit
a507e1282e
1 file changed
+4
-4
@@ -11,8 +11,8 @@ import Background from "../../../assets/Images/background-grid.svg?react";
|
|||||||
import Logo from "../../../assets/icons/bwu-icon.svg?react";
|
import Logo from "../../../assets/icons/bwu-icon.svg?react";
|
||||||
import { logger } from "../../../Utils/Logger";
|
import { logger } from "../../../Utils/Logger";
|
||||||
import "../index.css";
|
import "../index.css";
|
||||||
import EmailStep from "./Components/EmailStep";
|
import EmailStep from "./Components/EmailStep";
|
||||||
import PasswordStep from "./Components/PasswordStep";
|
import PasswordStep from "./Components/PasswordStep";
|
||||||
|
|
||||||
const DEMO = import.meta.env.VITE_APP_DEMO;
|
const DEMO = import.meta.env.VITE_APP_DEMO;
|
||||||
|
|
||||||
@@ -42,7 +42,7 @@ const Login = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (authToken) {
|
if (authToken) {
|
||||||
navigate("/monitors");
|
navigate("/uptime");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
networkService
|
networkService
|
||||||
@@ -108,7 +108,7 @@ const Login = () => {
|
|||||||
} else {
|
} else {
|
||||||
const action = await dispatch(login(form));
|
const action = await dispatch(login(form));
|
||||||
if (action.payload.success) {
|
if (action.payload.success) {
|
||||||
navigate("/monitors");
|
navigate("/uptime");
|
||||||
createToast({
|
createToast({
|
||||||
body: "Welcome back! You're successfully logged in.",
|
body: "Welcome back! You're successfully logged in.",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user