Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 33 additions & 36 deletions components/identities/availableIdentities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,14 @@ const AvailableIdentities = ({ tokenId }: { tokenId: string }) => {
>
<div className="h-full md:min-h-[80%] w-full overflow-y-auto hide-scrollbar flex flex-col gap-[2px] ">
{ownedIdentities.map((domain, index) => (
<div
key={index}
className="flex w-full items-center justify-start gap-1"
>
<div key={index} className="w-full">
<button
className={`${
domain.id === router.query.tokenId ||
domain.id === tokenId
? "text-[#402D28]"
: " text-[#CDCCCC] font-normal hover:text-[#402D28]"
} font-bold text-lg sm:text-md lg:text-md leading-5 cursor-pointer transition-all duration-300 border-[#4545451A] border-b-[1px] md:border-none md:py-0 py-6 md:my-3 block w-fit text-center xl:text-left`}
key={index}
: "text-[#CDCCCC] font-normal hover:text-[#402D28]"
} font-bold text-lg sm:text-md lg:text-md leading-5 cursor-pointer transition-all duration-300 border-[#4545451A] border-b-[1px] md:border-none md:py-0 py-6 md:my-3 w-full max-sm:pl-4 text-left items-center flex justify-center xl:justify-start`}
onClick={() => {
router.push(`/identities/${domain.id}`);
if (isIdentityExpired(domain)) {
Expand All @@ -252,36 +248,37 @@ const AvailableIdentities = ({ tokenId }: { tokenId: string }) => {
}
}}
>
{domain.domain ? domain.domain : domain.id}
<span className="flex items-center gap-1">
{domain.domain ? domain.domain : domain.id}
{isIdentityExpired(domain) && (
<Tooltip
title={
<span className="font-poppins font-medium text-sm leading-5 tracking-normal text-white w-full text-center">
Domain Expired
</span>
}
componentsProps={{
tooltip: {
sx: {
bgcolor: "#402D28",
height: "36px",
width: "135px",
display: "flex",
alignItems: "center",
justifyContent: "center",
borderRadius: "8px",
boxShadow:
"0px 4px 12px rgba(0, 0, 0, 0.2)",
padding: "0 12px",
},
},
}}
>
<FaCircle className="text-red-500 text-[8px]" />
</Tooltip>
)}
</span>
</button>
{isIdentityExpired(domain) && (
<Tooltip
title={
<span className="font-poppins font-medium text-sm leading-5 tracking-normal text-white w-full text-center">
Domain Expired
</span>
}
componentsProps={{
tooltip: {
sx: {
bgcolor: "#402D28",
height: "36px",
width: "135px",
display: "flex",
alignItems: "center",
justifyContent: "center",
borderRadius: "8px",
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.2)",
padding: "0 12px",
},
},
}}
>
<div className="flex w-[16px] h-[16px] items-center justify-center">
<FaCircle className="text-red-500 text-[8px] ml-1" />
</div>
</Tooltip>
)}
</div>
))}
</div>
Expand Down
120 changes: 120 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.