diff --git a/src/lib/event.ts b/src/lib/event.ts index b2fe821..da73606 100644 --- a/src/lib/event.ts +++ b/src/lib/event.ts @@ -119,6 +119,7 @@ export function getProfileFromProfileEvent(event: Event) { original_username: username, nip05: profileObj.nip05, about: profileObj.about, + website: profileObj.website, created_at: event.created_at } } catch (err) { diff --git a/src/pages/secondary/ProfilePage/index.tsx b/src/pages/secondary/ProfilePage/index.tsx index 421f026..1fbee19 100644 --- a/src/pages/secondary/ProfilePage/index.tsx +++ b/src/pages/secondary/ProfilePage/index.tsx @@ -28,6 +28,7 @@ import { useNostr } from '@/providers/NostrProvider' import { forwardRef, useMemo } from 'react' import { useTranslation } from 'react-i18next' import NotFoundPage from '../NotFoundPage' +import { Globe, Link } from 'lucide-react' const ProfilePage = forwardRef(({ id, index }: { id?: string; index?: number }, ref) => { const { t } = useTranslation() @@ -73,7 +74,7 @@ const ProfilePage = forwardRef(({ id, index }: { id?: string; index?: number }, } if (!profile) return - const { banner, username, about, avatar, pubkey } = profile + const { banner, username, about, avatar, pubkey, website } = profile return ( @@ -117,6 +118,14 @@ const ProfilePage = forwardRef(({ id, index }: { id?: string; index?: number }, + {website && ( + + + + {website} + + + )}