-
Notifications
You must be signed in to change notification settings - Fork 78
Adds EmptyState, Horizontal Pagination and Artwork Counts to Partner also adds isCloseToEdge util #1956
Conversation
fe86e7a
to
27b82ba
Compare
20103ba
to
d9e02a8
Compare
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 great! Just one question, but feel free to merge if ready.
|
||
type CallBack = () => void | ||
|
||
export function isCloseToEdge(onScrollEnd: CallBack, pageEndThreshold: number = PAGE_END_THRESHOLD) { |
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.
Are we planning to add tests for this class? I'm comfortable merging as-is as long as we ticket the follow-up tests.
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.
We can, looks like there are no tests yet for isCloseToBottom
so they could be grouped together.
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.
Added a ticket: https://artsyproduct.atlassian.net/browse/ME-99
The tests have passed but GitHub hasn't updated the build status. Merging. |
🚀 PR was released in v1.18.22 🚀 |
EmptyState
to each scrollviewisCloseToEdge
method for horizontal paginationHorizontal pagination
Empty state
#skip_new_tests