feat: Trending users @ghobs91

This commit is contained in:
2023-04-18 11:40:56 +01:00
parent 4afdd5afd4
commit d309bfd472
3 changed files with 57 additions and 3 deletions

View File

@ -9,6 +9,7 @@ import { SearchRelays } from "Const";
import { System } from "System";
import { MetadataCache } from "Cache";
import { UserCache } from "Cache/UserCache";
import TrendingUsers from "Element/TrendingUsers";
import messages from "./messages";
@ -64,6 +65,7 @@ const SearchPage = () => {
autoFocus={true}
/>
</div>
{!keyword && <TrendingUsers />}
{keyword && allUsers?.slice(0, 3).map(u => <ProfilePreview actions={<></>} className="card" pubkey={u.pubkey} />)}
{keyword && (
<Timeline