feat: server member count

This commit is contained in:
zerosoul
2022-03-07 10:18:47 +08:00
parent 2579761c7a
commit 05896932b5
4 changed files with 60 additions and 20 deletions
+5 -1
View File
@@ -41,7 +41,11 @@ export default function HomePage() {
{ready ? (
<StyledWrapper>
<div className={`col left ${menuExpand ? "expand" : ""}`}>
<ServerDropList data={data?.server} expand={menuExpand} />
<ServerDropList
data={data?.server}
memberCount={data?.metrics?.user_count}
expand={menuExpand}
/>
<nav className="nav">
<NavLink className="link" to={"/chat"}>
<img src={ChatIcon} alt="chat icon" />{" "}