We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e1afcf commit cc98040Copy full SHA for cc98040
apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/partners/[partnerId]/layout.tsx
@@ -32,6 +32,7 @@ import {
32
BoxArchive,
33
ChevronRight,
34
CircleXmark,
35
+ Copy,
36
EnvelopeArrowRight,
37
InvoiceDollar,
38
LoadingSpinner,
@@ -355,6 +356,16 @@ function PageControls({ partner }: { partner: EnrolledPartnerProps }) {
355
356
>
357
Advanced settings
358
</MenuItem>
359
+ <MenuItem
360
+ icon={Copy}
361
+ onClick={() => {
362
+ navigator.clipboard.writeText(partner.id);
363
+ toast.success("Partner ID copied!");
364
+ setIsOpen(false);
365
+ }}
366
+ >
367
+ Copy Partner ID
368
+ </MenuItem>
369
{!["banned", "deactivated"].includes(partner.status) && (
370
<MenuItem
371
icon={BoxArchive}
0 commit comments