From 03bdc4e00da2bf1ac03f64864d79bacda9a9fadf Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 5 Nov 2023 13:43:36 -0500 Subject: [PATCH] Display domain on share button --- app/scenes/Document/components/ShareButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scenes/Document/components/ShareButton.tsx b/app/scenes/Document/components/ShareButton.tsx index afbea2d43..677ef4193 100644 --- a/app/scenes/Document/components/ShareButton.tsx +++ b/app/scenes/Document/components/ShareButton.tsx @@ -21,6 +21,7 @@ function ShareButton({ document }: Props) { const team = useCurrentTeam(); const share = shares.getByDocumentId(document.id); const sharedParent = shares.getByDocumentParents(document.id); + const domain = share?.domain || sharedParent?.domain; const isPubliclyShared = team.sharing && (share?.published || (sharedParent?.published && !document.isDraft)); @@ -54,7 +55,7 @@ function ShareButton({ document }: Props) { neutral {...props} > - {t("Share")} + {t("Share")} {domain && <>· {domain}} )}