add copy button to org id

This commit is contained in:
miloschwartz
2026-08-10 10:44:25 -04:00
parent 996160fadc
commit 02e97d6ae4
+4 -1
View File
@@ -8,6 +8,7 @@ import {
InfoSections, InfoSections,
InfoSectionTitle InfoSectionTitle
} from "@app/components/InfoSection"; } from "@app/components/InfoSection";
import CopyToClipboard from "@app/components/CopyToClipboard";
import { useTranslations } from "next-intl"; import { useTranslations } from "next-intl";
type OrgInfoCardProps = {}; type OrgInfoCardProps = {};
@@ -26,7 +27,9 @@ export default function OrgInfoCard({}: OrgInfoCardProps) {
</InfoSection> </InfoSection>
<InfoSection> <InfoSection>
<InfoSectionTitle>{t("orgId")}</InfoSectionTitle> <InfoSectionTitle>{t("orgId")}</InfoSectionTitle>
<InfoSectionContent>{org.org.orgId}</InfoSectionContent> <InfoSectionContent>
<CopyToClipboard text={org.org.orgId} />
</InfoSectionContent>
</InfoSection> </InfoSection>
<InfoSection> <InfoSection>
<InfoSectionTitle>{t("subnet")}</InfoSectionTitle> <InfoSectionTitle>{t("subnet")}</InfoSectionTitle>