Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Clarify Space invite link actions

Anand Baburajanc101e38d63c2
diff --git a/web/apps/space/src/components/ShareInviteButton.tsx b/web/apps/space/src/components/ShareInviteButton.tsx
index fad3f8b18e..85b465e273 100644
--- a/web/apps/space/src/components/ShareInviteButton.tsx
+++ b/web/apps/space/src/components/ShareInviteButton.tsx
@@ -96,7 +96,11 @@ export const SpaceShareInviteButton: React.FC<SpaceShareInviteButtonProps> = ({
}
>
<SpaceShareIcon />
- {copied ? "Copied" : canShare ? "Share invite" : "Copy invite"}
+ {copied
+ ? "Invite link copied"
+ : canShare
+ ? "Share invite link"
+ : "Copy invite link"}
</Box>
);
};
diff --git a/web/apps/space/src/components/ShareLinkDialog.tsx b/web/apps/space/src/components/ShareLinkDialog.tsx
index 2408b45830..93301092f2 100644
--- a/web/apps/space/src/components/ShareLinkDialog.tsx
+++ b/web/apps/space/src/components/ShareLinkDialog.tsx
@@ -157,10 +157,10 @@ export const SpaceShareLinkDialogHost: React.FC = () => {
disabled={!profileLink}
label={
copied
- ? "Copied"
+ ? "Invite link copied"
: useNativeShare
- ? "Share invite"
- : "Copy link"
+ ? "Share invite link"
+ : "Copy invite link"
}
onClick={share}
/>
diff --git a/web/apps/space/src/screens/ProfileScreen.tsx b/web/apps/space/src/screens/ProfileScreen.tsx
index a024589e3d..8947df5d86 100644
--- a/web/apps/space/src/screens/ProfileScreen.tsx
+++ b/web/apps/space/src/screens/ProfileScreen.tsx
@@ -1538,7 +1538,7 @@ export const ProfileScreen: React.FC<ProfileScreenProps> = ({
<Box
component="button"
type="button"
- aria-label="Share invite"
+ aria-label="Share invite link"
onClick={() => void shareInvite()}
sx={{
alignItems: "center",