profile bug fixed
This commit was merged in pull request #327.
This commit is contained in:
@@ -472,10 +472,10 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
|
|||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
{/* profile */}
|
{/* profile */}
|
||||||
<div className="user-profile relative lg:block hidden">
|
<div className="user-profile relative">
|
||||||
<div
|
<div
|
||||||
onClick={() => handlerProfile()}
|
onClick={() => handlerProfile()}
|
||||||
className="flex items-center space-x-3.5"
|
className="hidden lg:flex items-center space-x-3.5"
|
||||||
>
|
>
|
||||||
{/* profile-image */}
|
{/* profile-image */}
|
||||||
<div className="lg:w-[62px] lg:h-[62px] w-[50px] h-[50px] rounded-full overflow-hidden">
|
<div className="lg:w-[62px] lg:h-[62px] w-[50px] h-[50px] rounded-full overflow-hidden">
|
||||||
@@ -492,6 +492,17 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
|
|||||||
{userDetails && userDetails?.account_type !== "FAMILY" && <p className="text-sm text-thin-light-gray">@{userEmail}</p>}
|
{userDetails && userDetails?.account_type !== "FAMILY" && <p className="text-sm text-thin-light-gray">@{userEmail}</p>}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="for-mobile-profile lg:hidden block">
|
||||||
|
<div
|
||||||
|
// to="/profile"
|
||||||
|
onClick={() => handlerProfile()}
|
||||||
|
className="lg:w-[62px] lg:h-[62px] w-[50px] h-[50px] rounded-full overflow-hidden block"
|
||||||
|
>
|
||||||
|
<img src={profileImg} alt="profile" className="w-full h-full" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={`profile-dropdown w-[293px] z-30 bg-white dark:bg-dark-white absolute lg:right-16 -right-[16px] rounded-lg ${
|
className={`profile-dropdown w-[293px] z-30 bg-white dark:bg-dark-white absolute lg:right-16 -right-[16px] rounded-lg ${
|
||||||
userProfileDropdown ? "active" : ""
|
userProfileDropdown ? "active" : ""
|
||||||
@@ -684,14 +695,15 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="for-mobile-profile lg:hidden block">
|
{/* <div className="for-mobile-profile lg:hidden block">
|
||||||
<Link
|
<div
|
||||||
to="/profile"
|
// to="/profile"
|
||||||
|
onClick={() => handlerProfile()}
|
||||||
className="lg:w-[62px] lg:h-[62px] w-[50px] h-[50px] rounded-full overflow-hidden block"
|
className="lg:w-[62px] lg:h-[62px] w-[50px] h-[50px] rounded-full overflow-hidden block"
|
||||||
>
|
>
|
||||||
<img src={profileImg} alt="profile" className="w-full h-full" />
|
<img src={profileImg} alt="profile" className="w-full h-full" />
|
||||||
</Link>
|
</div>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user