chore: render about with Text element
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kieran 2023-11-27 23:19:13 +00:00
parent 44bde791b4
commit b9d41a6263
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 6 additions and 1 deletions

View File

@ -32,3 +32,7 @@ a:not([href="/"], :has(button)) {
text-decoration: dotted;
text-decoration-line: underline;
}
.text {
white-space-collapse: preserve-breaks;
}

View File

@ -3,6 +3,7 @@ import { Link, useParams } from "react-router-dom";
import { ProfileImage } from "../element/profile-image";
import { parseNostrLink } from "@snort/system";
import { LatestTorrents } from "../element/trending";
import { Text } from "../element/text";
export function ProfilePage() {
const params = useParams();
@ -25,7 +26,7 @@ export function ProfileSection({ pubkey }: { pubkey: string }) {
<ProfileImage pubkey={pubkey} size={240} />
<div className="flex flex-col gap-2">
<h2>{profile?.name}</h2>
<p>{profile?.about}</p>
<Text content={profile?.about ?? ""} tags={[]} />
{profile?.website && (
<Link to={profile.website} target="_blank">
{new URL(profile.website).hostname}