added some url path in view pages

This commit is contained in:
Jelaletdin12
2026-06-04 17:23:41 +05:00
parent 2ba061b76c
commit ef9d6201eb
8 changed files with 757 additions and 854 deletions

View File

@@ -60,11 +60,22 @@ export function InfoRow({ label, value, children, isLink, href }: InfoRowProps)
{content != null && content !== "" ? (
typeof content === "string" ? (
isLink && href ? (
<Link to={href} className="text-sm break-words min-w-0 text-[#2bbae6] font-medium cursor-pointer hover:underline">
{content}
</Link>
href.startsWith("http") ? (
<a
href={href}
target="_blank"
rel="noopener noreferrer"
className="text-sm wrap-break-words min-w-0 text-[#2bbae6] font-medium cursor-pointer hover:underline"
>
{content}
</a>
) : (
<Link to={href} className="text-sm wrap-break-words min-w-0 text-[#2bbae6] font-medium cursor-pointer hover:underline">
{content}
</Link>
)
) : (
<span className={`text-sm break-words min-w-0 ${isLink ? "text-primary font-medium" : "text-foreground"}`}>{content}</span>
<span className={`text-sm wrap-break-words min-w-0 ${isLink ? "text-primary font-medium" : "text-foreground"}`}>{content}</span>
)
) : (
<div className="text-sm min-w-0">{content}</div>