Revert "Fix ads near recommended on Premium"

This reverts commit f56e552764.

Would like to consolidate logic into resolveAdVisibility, so the fix should be there instead.
This commit is contained in:
infinite-persistence 2022-05-30 13:24:34 +08:00
parent 8b1927b5dd
commit bd7d2ad621
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -189,10 +189,8 @@ function HomePage(props: Props) {
label={__('View More')}
/>
)}
{isMobileScreen && !hasPremiumPlus && <AdsBanner key={`${currentTheme}:${title}`} />}
{!isMobileScreen && !hasPremiumPlus && (index === 0 || index % 2 === 0) && (
<AdsBanner key={`${currentTheme}:${title}`} />
)}
{isMobileScreen && <AdsBanner key={`${currentTheme}:${title}`} />}
{!isMobileScreen && (index === 0 || index % 2 === 0) && <AdsBanner key={`${currentTheme}:${title}`} />}
</>
)}
</div>