-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Logout and Settings options on profile page #803
Conversation
As I can see, you made a mistake of creating a branch from a feature branch instead of the master branch, hence the commits of that feature branch are also reflected on this branch. I can accept this pr by squashing it so that this won't reflect the commit history. Please look after this mistake from the next time. |
when you use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logout confirmation seems to be missing, can you fix that please?
Okay, sorry bro for the mistake. I will not repeat this mistake from next time. |
Yeah sure please give me some time |
@narayan954 I have added the logout modal now and it's working fine. Please review this pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm removing the duplicate code, do let me know if there was any special reason to duplicate it
src/pages/Profile/index.jsx
Outdated
import { useSnackbar } from "notistack"; | ||
|
||
const Post = lazy(() => import("../../components/Post")); | ||
const SideBar = lazy(() => import("../../components/SideBar")); | ||
|
||
export function getModalStyle() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why were you adding this function again if you could just import it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it from app.js and then pasted it to the profile page. Later I realized that it is getting used somewhere else also. So forgot to remove it from Profile.js.
src/pages/Profile/index.jsx
Outdated
}; | ||
} | ||
|
||
export const useStyles = makeStyles((theme) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same repeat
@narayan954 Can you please add the labels? |
right, on it |
Thanks! |
Hey, @narayan954 I have successfully added the logout and setting options on the profile page and removed these options from the navbar. Please review my pr and merge it. Thank you!