From 620ea20a4572ebb88353cf02a251ebff7fd328e5 Mon Sep 17 00:00:00 2001 From: Jonath-z Date: Sun, 12 Jun 2022 16:08:38 +0200 Subject: [PATCH] shadow and border added to user avatar --- .../Card/AvatartAndCoverCard/index.tsx | 6 ++---- .../__modules__/Card/UserAvatarCard/index.tsx | 4 ++-- components/modules/__secured/Profile/index.tsx | 1 - .../modules/__secured/ProfileMenu/index.tsx | 10 +++++++++- lib/Resources.ts | 2 +- public/static/images/noCover.png | Bin 6768 -> 0 bytes 6 files changed, 14 insertions(+), 9 deletions(-) delete mode 100644 public/static/images/noCover.png diff --git a/components/modules/__modules__/Card/AvatartAndCoverCard/index.tsx b/components/modules/__modules__/Card/AvatartAndCoverCard/index.tsx index f461fcd..1978a41 100644 --- a/components/modules/__modules__/Card/AvatartAndCoverCard/index.tsx +++ b/components/modules/__modules__/Card/AvatartAndCoverCard/index.tsx @@ -15,7 +15,7 @@ const AvatarAndCoverCard = ({ user }: IProps) => { return (
{user?.username} @@ -26,9 +26,7 @@ const AvatarAndCoverCard = ({ user }: IProps) => { onUserAvatarClicked={() => router.push(`/profile/${user?.walletAddress}`) } - identiconContainerClassName={ - "bg-red rounded-full overflow-hidden -mt-20 p-5 border-1 border-gray-400" - } + identiconContainerClassName="rounded-full overflow-hidden -mt-20 p-5 border-2 shadow-xl bg-white border-gray-100" userAvatarClassName={ "h-[120px] w-[120px] -mt-20 object-cover border-4 border-white border-solid rounded-full relative" } diff --git a/components/modules/__modules__/Card/UserAvatarCard/index.tsx b/components/modules/__modules__/Card/UserAvatarCard/index.tsx index e6c289f..e2ab119 100644 --- a/components/modules/__modules__/Card/UserAvatarCard/index.tsx +++ b/components/modules/__modules__/Card/UserAvatarCard/index.tsx @@ -15,9 +15,9 @@ interface IProps { const UserAvatarCard: FC = ({ user, - identiconSize, + identiconSize = 20, userAvatarClassName, - identiconContainerClassName, + identiconContainerClassName = "bg-white rounded-full overflow-hidden border border-gray-300 p-3", allowVerifiedIcon = false, onUserAvatarClicked, }) => { diff --git a/components/modules/__secured/Profile/index.tsx b/components/modules/__secured/Profile/index.tsx index 3b135d2..eff1190 100644 --- a/components/modules/__secured/Profile/index.tsx +++ b/components/modules/__secured/Profile/index.tsx @@ -17,7 +17,6 @@ import { SaleContainer } from "@components/modules/__secured/Profile/saleContain import { UserAccount } from "@lib/models/UserAccount"; import { middleEllipsis } from "../../../../helpers/truncateStrings"; import ProfileMenu from "../ProfileMenu"; -import dummy_profile from "@components/DropPage/AvatarAndCover/dummy_profile"; import AvatarAndCoverCard from "@components/modules/__modules__/Card/AvatartAndCoverCard"; import TabList from "./module/TabList"; import OwnedContainer from "./OwnedContainer"; diff --git a/components/modules/__secured/ProfileMenu/index.tsx b/components/modules/__secured/ProfileMenu/index.tsx index 55fd1d2..21e1f9d 100644 --- a/components/modules/__secured/ProfileMenu/index.tsx +++ b/components/modules/__secured/ProfileMenu/index.tsx @@ -30,6 +30,11 @@ const ProfileMenu = () => { setIsProfileMenu(!isProfileMenu); }; + const onRedirectToEditProfile = () => { + router.push("edith/profile"); + setIsProfileMenu(!isProfileMenu); + }; + return (
{ walletBalance={balance + "ETH"} />
-