Skip to content

Commit 96f2ea9

Browse files
Use more semantic header tag and provide fallback trigger texts
1 parent 591454e commit 96f2ea9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

examples/src/App.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ function App() {
6666

6767
return (
6868
<div className={styles.example}>
69-
<h3>react-swipeable-list example</h3>
69+
<h1>react-swipeable-list example</h1>
7070
<h5>(try also mobile view in dev tools for touch events)</h5>
7171
<h3>Simple example (with default 0.5 action trigger threshold)</h3>
72-
<span className={styles.actionInfo}>{triggeredSimpleItemAction}</span>
72+
<span className={styles.actionInfo}>
73+
{triggeredSimpleItemAction || 'No action triggered yet'}
74+
</span>
7375
<div className={styles.listContainer}>
7476
<SwipeableList>
7577
<SwipeableListItem
@@ -97,7 +99,9 @@ function App() {
9799
More complex items and scroll (with 0.25 action trigger threshold)
98100
</h3>
99101
<h3>List in smaller container</h3>
100-
<span className={styles.actionInfo}>{triggeredComplexItemAction}</span>
102+
<span className={styles.actionInfo}>
103+
{triggeredComplexItemAction || 'No action triggered yet'}
104+
</span>
101105
<div className={styles.complexListContainer}>
102106
<SwipeableList threshold={0.25}>
103107
<SwipeableListItem

0 commit comments

Comments
 (0)