diff --git a/src/pages/NIP19Page.tsx b/src/pages/NIP19Page.tsx index f67abb3..916d664 100644 --- a/src/pages/NIP19Page.tsx +++ b/src/pages/NIP19Page.tsx @@ -32,6 +32,7 @@ import { Copy, Check, ShieldCheck, + Instagram, Users, Crown, Bot, @@ -95,7 +96,7 @@ function ProfilePage({ pubkey }: { pubkey: string }) { const skaterWebsite = skater?.website || website; const hasSkateLayer = !!skater && ( !!stanceMeta || !!levelMeta || !!skater.customLevel || skater.styles.length > 0 || - !!skater.yearsSkating || !!skater.homeSpot + !!skater.yearsSkating || !!skater.homeSpot || !!skater.location || !!skater.instagram ); const handleCopyNpub = () => { @@ -328,6 +329,15 @@ function ProfilePage({ pubkey }: { pubkey: string }) { {inner} ) : inner; })()} + {skater?.location && ( +
+ +
+

Based in

+

{skater.location}

+
+
+ )} {/* Styles */} @@ -559,6 +569,23 @@ function ProfilePage({ pubkey }: { pubkey: string }) { )} + {skater?.instagram && (() => { + const handle = skater.instagram.trim().replace(/^@+/, '').replace(/^https?:\/\/(www\.)?instagram\.com\//i, '').replace(/\/+$/, ''); + if (!handle) return null; + return ( + + + @{handle} + + + ); + })()} + {lud16 && (