mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added todo
This commit is contained in:
parent
c705f11b7e
commit
171235bdb9
@ -47,6 +47,14 @@ export default class PostsFeed extends React.Component {
|
|||||||
window.app.ws.listen(event, this.wsEvents[event])
|
window.app.ws.listen(event, this.wsEvents[event])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// TODO: register keybindings to handle directions key scrolling to posts (use app.shortcuts)
|
||||||
|
// window.app.shortcuts.register("ArrowUp", () => {
|
||||||
|
// // {...}
|
||||||
|
// })
|
||||||
|
// window.app.shortcuts.register("ArrowDown", () => {
|
||||||
|
// // {...}
|
||||||
|
// })
|
||||||
|
|
||||||
await this.loadPosts()
|
await this.loadPosts()
|
||||||
|
|
||||||
await this.setState({ initialLoading: false })
|
await this.setState({ initialLoading: false })
|
||||||
@ -177,7 +185,7 @@ export default class PostsFeed extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div id="postsFeed" className="postsFeed" ref={this.listRef}>
|
return <div id="postsFeed" className="postsFeed">
|
||||||
<LoadMore
|
<LoadMore
|
||||||
onBottom={() => {
|
onBottom={() => {
|
||||||
this.loadPosts()
|
this.loadPosts()
|
||||||
@ -187,6 +195,7 @@ export default class PostsFeed extends React.Component {
|
|||||||
fetching={this.state.fetchingData}
|
fetching={this.state.fetchingData}
|
||||||
hasMore={this.state.hasMorePosts}
|
hasMore={this.state.hasMorePosts}
|
||||||
className="posts"
|
className="posts"
|
||||||
|
ref={this.listRef}
|
||||||
>
|
>
|
||||||
{this.state.renderList}
|
{this.state.renderList}
|
||||||
</LoadMore>
|
</LoadMore>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user