Skip to content

Commit

Permalink
fix(core): ⚡ profile popover fix
Browse files Browse the repository at this point in the history
profile popover fix

Ref #no-ref
  • Loading branch information
techoneel committed Nov 5, 2024
1 parent eb367b8 commit b709056
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package/components/utils/CoreProfilePopOver.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line unused-imports/no-unused-imports, no-unused-vars
import React, { useContext } from "react";
import React from "react";

// eslint-disable-next-line import/no-unresolved
import { nativeUseNavigate } from "@wrappid/native";
Expand All @@ -26,16 +26,17 @@ export default function CoreProfilePopOver(props) {
// console.log(props);
const navigate = nativeUseNavigate();
const auth = useSelector((state) => state?.auth || {});
const profile = useSelector((state) => state?.profile);

const { profileRegistration } = useSelector((state) => state?.api);

const {
name = "Unknown User",
photo = null,
email = "",
emailVerified = false,
phone = "",
phoneVerified = false,
} = profile?.contact || {};
} = auth || {};
const { onClose } = props;
const profileCardMenu = [
{
Expand Down Expand Up @@ -81,7 +82,7 @@ export default function CoreProfilePopOver(props) {
<CoreAvatar
gridProps={{ gridSize: { md: 4, sm: 3, xs: 3 } }}
styleClasses={[CoreClasses.DATA_DISPLAY.AVATAR_MEDIUM]}
src={auth?.photo}
src={photo}
/>

<CoreBox
Expand All @@ -90,7 +91,7 @@ export default function CoreProfilePopOver(props) {
>
{/* <CoreGrid> */}
<CoreTypographyBody2 /* hideSeeMore={true} limitChars={30} */>
{auth?.name}
{name}
</CoreTypographyBody2>

<CoreTypographyCaption /* hideSeeMore={true} limitChars={30} */>
Expand Down

0 comments on commit b709056

Please sign in to comment.