From 7036cf9e49c856ef4c8c139adc0d9224e1f2fcf0 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 10 Sep 2025 20:42:09 +0200 Subject: [PATCH] Profile view when signed up: no pic, see first lines of bio --- web/components/buttons/copy-link-button.tsx | 4 +++- web/components/profile/lover-profile.tsx | 12 ++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/web/components/buttons/copy-link-button.tsx b/web/components/buttons/copy-link-button.tsx index 150f7dcc..e0272285 100644 --- a/web/components/buttons/copy-link-button.tsx +++ b/web/components/buttons/copy-link-button.tsx @@ -41,6 +41,8 @@ export function CopyLinkOrShareButton(props: { setTimeout(() => setIsSuccess(false), 2000) // Reset after 2 seconds } + const content = isSuccess ? 'Copied!' : children + return ( ) diff --git a/web/components/profile/lover-profile.tsx b/web/components/profile/lover-profile.tsx index c357ecce..02e4b95e 100644 --- a/web/components/profile/lover-profile.tsx +++ b/web/components/profile/lover-profile.tsx @@ -20,6 +20,9 @@ import { LikeData, ShipData } from 'common/api/love-types' import { useAPIGetter } from 'web/hooks/use-api-getter' import { useGetter } from 'web/hooks/use-getter' import { getStars } from 'web/lib/supabase/stars' +import {Content} from "web/components/widgets/editor"; +import {JSONContent} from "@tiptap/core"; +import React from "react"; export function LoverProfile(props: { lover: Lover @@ -63,6 +66,8 @@ export function LoverProfile(props: { const showMessageButton = liked || likedBack || !areCompatible + const isProfileVisible = currentUser || lover.visibility === 'public' + return ( <> - {currentUser || lover.visibility === 'public' ? ( + {isProfileVisible ? ( ) : ( +
+ +
@@ -118,7 +126,7 @@ export function LoverProfile(props: { /> )} - {lover.photo_urls && } + {isProfileVisible && lover.photo_urls && } ) }