mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added contentsRef
This commit is contained in:
parent
8c280afbf2
commit
a5fd4ecbf0
@ -1,6 +1,5 @@
|
||||
import React from "react"
|
||||
import { Skeleton } from "antd"
|
||||
import { Icons } from "components/Icons"
|
||||
|
||||
import { PostsList } from "components"
|
||||
import Post from "models/post"
|
||||
@ -21,6 +20,8 @@ export default class UserPosts extends React.Component {
|
||||
posts: [],
|
||||
}
|
||||
|
||||
contentsRef = React.createRef()
|
||||
|
||||
loadData = async ({
|
||||
trim,
|
||||
replace = false
|
||||
@ -76,6 +77,7 @@ export default class UserPosts extends React.Component {
|
||||
emptyListRender={emptyListRender}
|
||||
onLoadMore={this.loadData}
|
||||
posts={this.state.posts}
|
||||
ref={this.contentsRef}
|
||||
/>
|
||||
}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user