move swipe callback next to other callbacks

This commit is contained in:
Athou
2023-06-21 20:13:40 +02:00
parent 8b0b9b1a66
commit 877fc33180
2 changed files with 5 additions and 5 deletions

View File

@@ -59,6 +59,8 @@ export function FeedEntries() {
}
}
const swipedRight = (entry: ExpendableEntry) => dispatch(markEntry({ entry, read: !entry.read }))
useEffect(() => {
const scrollArea = document.getElementById(Constants.dom.mainScrollAreaId)
@@ -270,6 +272,7 @@ export function FeedEntries() {
showSelectionIndicator={entry.id === selectedEntryId && (!entry.expanded || viewMode === "expanded")}
maxWidth={sidebarVisible ? Constants.layout.entryMaxWidth : undefined}
onHeaderClick={event => headerClicked(entry, event)}
onSwipedRight={() => swipedRight(entry)}
/>
</div>
))}