Skip to content

Commit 63c2b5b

Browse files
committed
add story for onScrollToBottom scenario
1 parent 332081a commit 63c2b5b

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

polaris-react/src/components/Scrollable/Scrollable.stories.tsx

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export function WithHorizonalScrollPrevention() {
154154
);
155155
}
156156

157-
export function ToChildComponent() {
157+
export function ScrollToChildComponent() {
158158
return (
159159
<Card title="Terms of service" sectioned>
160160
<Scrollable shadow style={{height: '200px'}}>
@@ -500,3 +500,60 @@ export function WithScrollHint() {
500500
</Card>
501501
);
502502
}
503+
504+
export function OnScrolledToBottom() {
505+
return (
506+
<Card title="Terms of service" sectioned>
507+
<Scrollable
508+
style={{height: '200px'}}
509+
onScrolledToBottom={() => console.log('scrolled to bottom')}
510+
>
511+
<p>
512+
By signing up for the Shopify service (“Service”) or any of the
513+
services of Shopify Inc. (“Shopify”) you are agreeing to be bound by
514+
the following terms and conditions (“Terms of Service”). The Services
515+
offered by Shopify under the Terms of Service include various products
516+
and services to help you create and manage a retail store, whether an
517+
online store (“Online Services”), a physical retail store (“POS
518+
Services”), or both. Any new features or tools which are added to the
519+
current Service shall be also subject to the Terms of Service. You can
520+
review the current version of the Terms of Service at any time at
521+
https://www.shopify.com/legal/terms. Shopify reserves the right to
522+
update and change the Terms of Service by posting updates and changes
523+
to the Shopify website. You are advised to check the Terms of Service
524+
from time to time for any updates or changes that may impact you.
525+
</p>
526+
<p>
527+
By signing up for the Shopify service (“Service”) or any of the
528+
services of Shopify Inc. (“Shopify”) you are agreeing to be bound by
529+
the following terms and conditions (“Terms of Service”). The Services
530+
offered by Shopify under the Terms of Service include various products
531+
and services to help you create and manage a retail store, whether an
532+
online store (“Online Services”), a physical retail store (“POS
533+
Services”), or both. Any new features or tools which are added to the
534+
current Service shall be also subject to the Terms of Service. You can
535+
review the current version of the Terms of Service at any time at
536+
https://www.shopify.com/legal/terms. Shopify reserves the right to
537+
update and change the Terms of Service by posting updates and changes
538+
to the Shopify website. You are advised to check the Terms of Service
539+
from time to time for any updates or changes that may impact you.
540+
</p>
541+
<p>
542+
By signing up for the Shopify service (“Service”) or any of the
543+
services of Shopify Inc. (“Shopify”) you are agreeing to be bound by
544+
the following terms and conditions (“Terms of Service”). The Services
545+
offered by Shopify under the Terms of Service include various products
546+
and services to help you create and manage a retail store, whether an
547+
online store (“Online Services”), a physical retail store (“POS
548+
Services”), or both. Any new features or tools which are added to the
549+
current Service shall be also subject to the Terms of Service. You can
550+
review the current version of the Terms of Service at any time at
551+
https://www.shopify.com/legal/terms. Shopify reserves the right to
552+
update and change the Terms of Service by posting updates and changes
553+
to the Shopify website. You are advised to check the Terms of Service
554+
from time to time for any updates or changes that may impact you.
555+
</p>
556+
</Scrollable>
557+
</Card>
558+
);
559+
}

0 commit comments

Comments
 (0)