added context provider for user profile
This commit was merged in pull request #11.
This commit is contained in:
@@ -17,8 +17,12 @@ import MailOutlineIcon from "@mui/icons-material/MailOutline";
|
||||
import ChatBubbleOutlineIcon from "@mui/icons-material/ChatBubbleOutline";
|
||||
import AttachMoneyIcon from "@mui/icons-material/AttachMoney";
|
||||
import Logout from "@mui/icons-material/Logout";
|
||||
import { useUserProfile } from "contexts/userProfileContext";
|
||||
|
||||
const Profile = () => {
|
||||
const { state } = useUserProfile();
|
||||
const userProfile = state.userProfile;
|
||||
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
|
||||
Reference in New Issue
Block a user