-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate merch high and mobile ad slots #13138
Conversation
a652372
to
db807ef
Compare
Size Change: 0 B Total Size: 871 kB ℹ️ View Unchanged
|
mobileAdPositions={mobileAdPositions} | ||
hasPageSkin={hasPageSkin} | ||
/> | ||
{mobileAdPositions.includes(index) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mobileAdPositions
already avoids the merch high position when calculated so we don't need to check if it clashes here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
What does this change?
Builds on #13134 to extract logic away from the rendering components and closer to one source of truth
Why?
We're going to change the merch high position and then adjust the positioning logic for ads on the front. This set of changes makes it easier to update the logic safely without accidentally changing existing logic.
Screenshots
This is a refactoring change so there are no expected visual changes as a result of this PR