Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update page-client.tsx

Tim Wilson56a173e81250
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/messages/[partnerId]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/messages/[partnerId]/page-client.tsx
index 33575357eb..b9020dd20c 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/messages/[partnerId]/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/messages/[partnerId]/page-client.tsx
@@ -87,24 +87,30 @@ export function ProgramMessagesPartnerPageClient() {
>
<ChevronLeft className="size-3.5" />
</button>
- <div className="flex min-w-0 items-center gap-3">
- {!partner ? (
- <>
- <div className="size-8 animate-pulse rounded-full bg-neutral-200" />
- <div className="h-8 w-36 animate-pulse rounded-md bg-neutral-200" />
- </>
- ) : (
- <>
- <img
- src={partner?.image || `${OG_AVATAR_URL}${partner?.name}`}
- alt={`${partner?.name} avatar`}
- className="size-8 shrink-0 rounded-full"
- />
- <h2 className="text-content-emphasis min-w-0 truncate text-lg font-semibold leading-7">
- {partner?.name ?? "Partner"}
- </h2>
- </>
- )}
+ <div className="min-w-0">
+ <button
+ type="button"
+ onClick={() => setIsRightPanelOpen((o) => !o)}
+ className="-mx-2 -my-1 flex min-w-0 items-center gap-3 rounded-lg px-2 py-1 transition-colors duration-100 hover:bg-black/5 active:bg-black/10"
+ >
+ {!partner ? (
+ <>
+ <div className="size-8 animate-pulse rounded-full bg-neutral-200" />
+ <div className="h-8 w-36 animate-pulse rounded-md bg-neutral-200" />
+ </>
+ ) : (
+ <>
+ <img
+ src={partner?.image || `${OG_AVATAR_URL}${partner?.name}`}
+ alt={`${partner?.name} avatar`}
+ className="size-8 shrink-0 rounded-full"
+ />
+ <h2 className="text-content-emphasis min-w-0 truncate text-lg font-semibold leading-7">
+ {partner?.name ?? "Partner"}
+ </h2>
+ </>
+ )}
+ </button>
</div>
</div>
<ToggleSidePanelButton