Skip to content

Commit 04bd6e2

Browse files
author
Marek Rozmus
committed
Add small code review fixes
1 parent 80a598c commit 04bd6e2

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
},
1818
"rules": {
1919
"react-hooks/rules-of-hooks": "error",
20-
"react-hooks/exhaustive-deps": "warn"
20+
"react-hooks/exhaustive-deps": "error"
2121
}
2222
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
2+
.stylelintcache
23
node_modules/
34
dist

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ yarn add sandstreamdev/react-swipeable-list
1313
```javascript jsx
1414
<SwipeableList>
1515
<SwipeableListItem
16+
swipeLeft={{
17+
content: <div>Revealed content during swipe</div>,
18+
action: () => console.info('swipe action triggered')
19+
}}
1620
swipeRight={{
17-
background: <div>Left background</div>,
21+
content: <div>Revealed content during swipe</div>,
1822
action: () => console.info('swipe action triggered')
1923
}}
2024
>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "react-swipeable-list",
2+
"name": "@sandstreamdev/react-swipeable-list",
33
"description": "Swipeable list component for React",
4-
"version": "0.0.1",
4+
"version": "0.1.0",
55
"author": {
66
"name": "Sandstream Development",
77
"url": "https://github.com/sandstreamdev/react-swipeable-list/graphs/contributors"

src/SwipeableList.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
background: white;
44
width: 100%;
55
height: 100%;
6-
overflow-y: scroll;
6+
overflow-y: auto;
77
}

0 commit comments

Comments
 (0)