frontend: show active-profile picture on Compose and sidebar
Avatar was rendered without the 'picture' prop, so the active profile's
image only appeared on Home. Added picture={active.picture} to both
Compose avatars (write + preview) and the sidebar active-profile avatar.
This commit is contained in:
parent
10148644e7
commit
98f45204dc
2 changed files with 3 additions and 3 deletions
|
|
@ -54,7 +54,7 @@ export function Sidebar({ screen, onNavigate }: SidebarProps) {
|
||||||
<div className="sidebar-footer">
|
<div className="sidebar-footer">
|
||||||
{active ? (
|
{active ? (
|
||||||
<div className="sidebar-profile">
|
<div className="sidebar-profile">
|
||||||
<Avatar npub={active.npub} label={active.label} />
|
<Avatar npub={active.npub} label={active.label} picture={active.picture} />
|
||||||
<div className="sidebar-profile-meta">
|
<div className="sidebar-profile-meta">
|
||||||
<span className="sidebar-profile-name">{active.label}</span>
|
<span className="sidebar-profile-name">{active.label}</span>
|
||||||
<span className="mono" title={active.npub}>
|
<span className="mono" title={active.npub}>
|
||||||
|
|
|
||||||
|
|
@ -160,7 +160,7 @@ export function ComposeScreen() {
|
||||||
<div className="compose-profile">
|
<div className="compose-profile">
|
||||||
{active ? (
|
{active ? (
|
||||||
<>
|
<>
|
||||||
<Avatar npub={active.npub} label={active.label} />
|
<Avatar npub={active.npub} label={active.label} picture={active.picture} />
|
||||||
<div>
|
<div>
|
||||||
<span className="profile-name">{active.label}</span>
|
<span className="profile-name">{active.label}</span>
|
||||||
<code className="mono" title={active.npub}>
|
<code className="mono" title={active.npub}>
|
||||||
|
|
@ -294,7 +294,7 @@ export function ComposeScreen() {
|
||||||
<div className="compose-preview" data-testid="compose-preview">
|
<div className="compose-preview" data-testid="compose-preview">
|
||||||
<div className="compose-preview-head">
|
<div className="compose-preview-head">
|
||||||
{active ? (
|
{active ? (
|
||||||
<Avatar npub={active.npub} label={active.label} />
|
<Avatar npub={active.npub} label={active.label} picture={active.picture} />
|
||||||
) : (
|
) : (
|
||||||
<Badge tone="warning">No profile selected</Badge>
|
<Badge tone="warning">No profile selected</Badge>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue