- {projectAccess === 'linkSharing' &&
}
+ {projectAccess === 'legacyLinkSharing' && (
+
+ )}
{projectAccess === 'onlyInvitedPeople' && (
)}
@@ -141,17 +182,19 @@ function ProjectAccess({
- {projectAccess === 'linkSharing' && (
+ {projectAccess === 'legacyLinkSharing' && (
<>
}
trailingIcon={
- projectAccess === 'linkSharing' ? 'check' : undefined
+ projectAccess === 'legacyLinkSharing'
+ ? 'check'
+ : undefined
}
- active={projectAccess === 'linkSharing'}
+ active={projectAccess === 'legacyLinkSharing'}
>
{t('via_sharing_links_legacy')}
@@ -174,21 +217,23 @@ function ProjectAccess({
{t('only_invited_people')}
-
- }
- trailingIcon={
- projectAccess === 'anyoneInXyzWithTheLink'
- ? 'check'
- : undefined
- }
- active={projectAccess === 'anyoneInXyzWithTheLink'}
- >
- {t('anyone_in_x_with_the_link', { companyName })}
-
-
+ {sharingLinkData?.subscriptionId && (
+
+ }
+ trailingIcon={
+ projectAccess === 'anyoneInXyzWithTheLink'
+ ? 'check'
+ : undefined
+ }
+ active={projectAccess === 'anyoneInXyzWithTheLink'}
+ >
+ {t('anyone_in_x_with_the_link', { groupName })}
+
+
+ )}
{t('anyone_with_the_link')}
-
-
-
-
-
@@ -227,7 +259,7 @@ function ProjectAccess({
/>
)}
- {projectAccess !== 'linkSharing' && (
+ {projectAccess !== 'legacyLinkSharing' && privileges && (