Bw/share by unit (#1050)

* fix: disable share feature on component unmount

* fix: share only on set units

* fix: share only on set units

* fix: typo
This commit is contained in:
Ben Warzeski
2023-01-20 11:33:38 -05:00
committed by GitHub
parent 4cea9e582b
commit 3bb7aa06bc

View File

@@ -150,7 +150,7 @@ function Unit({
isProcessing={unit.bookmarkedUpdateState === 'loading'}
/>
{/* TODO: social share exp. Need to remove later */}
{(window.expSocialShareAboutUrls && window.expSocialShareUrls[unit.id] !== undefined) && (
{(window.expSocialShareAboutUrls && window.expSocialShareAboutUrls[unit.id] !== undefined) && (
<ShareButton url={window.expSocialShareAboutUrls[unit.id]} />
)}
{contentTypeGatingEnabled && unit.containsContentTypeGatedContent && (