Skip to content

Commit

Permalink
Merge pull request #167 from kushwahramkumar2003/ram
Browse files Browse the repository at this point in the history
Update base URL and user profile image***
  • Loading branch information
kushwahramkumar2003 authored Feb 8, 2024
2 parents ec8347f + c3bf821 commit 11ec6ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/constants/baseUrl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// const baseURL = import.meta.env.VUE_APP_API_URL || "http://localhost:3001";
// const baseURL = "http://localhost:3001";
const baseURL = "https://quiz-app-backend-cloud.azurewebsites.net";
const baseURL = "http://localhost:3001";
// const baseURL = "https://quiz-app-backend-cloud.azurewebsites.net";
export default baseURL;
2 changes: 1 addition & 1 deletion src/pages/admin/Admin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const Admin = () => {
<div className="Admin-manu">
<div className="Grad-logo">
<h1 className="logo-name-for-admin">QuizGrad</h1>
<img src={images.MyAdmin} alt="profile"></img>
<img src={userState.userInfo.avatar ? userState.userInfo.avatar:images.MyAdmin} alt="profile"></img>
<p>Admin</p>
</div>

Expand Down
1 change: 1 addition & 0 deletions src/pages/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function Login() {
},
onSuccess: async (data) => {
const { user } = data;
console.log("User : ",user);

await dispatch(userActions.setUserInfo(user));
await localStorage.setItem("account", JSON.stringify(user));
Expand Down

0 comments on commit 11ec6ab

Please sign in to comment.