mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
improve emptyListRender
for profile posts
This commit is contained in:
parent
8b6de97940
commit
acb4e4c3c7
@ -1,15 +1,19 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import { Skeleton } from "antd"
|
import { Skeleton, Result } from "antd"
|
||||||
|
|
||||||
import { PostsList } from "components"
|
|
||||||
import Post from "models/post"
|
import Post from "models/post"
|
||||||
|
|
||||||
|
import { PostsList } from "components"
|
||||||
|
import { Icons } from "components/Icons"
|
||||||
|
|
||||||
const emptyListRender = () => {
|
const emptyListRender = () => {
|
||||||
return <div className="emptyFeed">
|
return <Result
|
||||||
|
icon={<Icons.UserX style={{ fontSize: "50px" }} />}
|
||||||
|
>
|
||||||
<h2>
|
<h2>
|
||||||
This user has no posts yet.
|
It's seems this user has no public post, yet.
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</Result>
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class UserPosts extends React.Component {
|
export default class UserPosts extends React.Component {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user