mui blue color fixes

This commit is contained in:
AmitChauhan63390
2024-12-08 04:49:29 +05:30
parent 3cf0786389
commit 587dacdaf1
6 changed files with 143 additions and 20 deletions

View File

@@ -38,7 +38,7 @@ const Login = () => {
const { data } = await axios.post(`${apiUrl}/auth/login`, {
email,
password,
});
}, { withCredentials: true });
dispatch({ type: "LOGIN", payload: data });
notify("success", "Welcome to Maxun!");
window.localStorage.setItem("user", JSON.stringify(data));

View File

@@ -39,6 +39,8 @@ const Register = () => {
email,
password,
});
console.log(data)
dispatch({ type: "LOGIN", payload: data });
notify("success", "Registration Successful!");
window.localStorage.setItem("user", JSON.stringify(data));