updated public profile view

This commit is contained in:
blaisadmin
2026-05-20 22:14:07 -04:00
parent 1c0d57299d
commit 38dcb7f49b
3 changed files with 13 additions and 0 deletions
+6
View File
@@ -203,6 +203,7 @@ type PublicBirdProfile = {
id: string;
workspaceId: number;
name: string;
favoriteSnack: string | null;
gender: BirdGender;
dateOfBirth: string | null;
photoDataUrl: string | null;
@@ -3587,6 +3588,7 @@ function App() {
return (
<main className="auth-shell public-profile-shell">
<section className="panel public-profile-card">
<img className="public-profile-logo" src={flockPalLandingArt} alt="FlockPal" />
{publicProfileLoading || authLoading ? (
<p>Loading bird profile...</p>
) : publicProfileError || !publicProfile ? (
@@ -3609,6 +3611,10 @@ function App() {
<span>Hatch Day</span>
<strong>{formatDate(publicProfile.dateOfBirth)}</strong>
</article>
<article className="summary-card">
<span>Favorite treat</span>
<strong>{publicProfile.favoriteSnack || 'Not recorded'}</strong>
</article>
{publicProfileWorkspaceMembership ? (
<button className="primary-button" onClick={handleOpenPublicProfileBird} type="button">
Open full profile