debouncing results and sort of getting results back

This commit is contained in:
talksik
2022-04-02 14:57:19 -04:00
parent c512811a09
commit e076edd588
7 changed files with 115 additions and 51 deletions
@@ -0,0 +1,35 @@
import { FaAngleRight } from "react-icons/fa";
import { Tooltip } from "antd";
import { User } from "@nirvana/core/models/user.model";
export default function renderUserRow(user: User) {
return (
<span
key={user._id.toString()}
className="border-t border-t-zinc-500 py-5 flex flex-row justify-start
items-center w-full hover:bg-zinc-600 cursor-pointer group"
>
<span className="relative mx-5">
<img
src={user.picture}
className="rounded-lg h-8 hover:bg-zinc-200 hover:cursor-pointer hover:scale-110"
alt=""
/>
<span className="absolute bottom-0 -right-1.5 rounded-full bg-emerald-600 h-3 w-3"></span>
</span>
<span className="flex flex-col items-start">
<span className="text-zinc-200 text-lg font-semibold">{user.name}</span>
<span className="text-zinc-300">{user.email}</span>
</span>
{/* actions */}
<Tooltip title="Request connect">
<button className="hover:bg-zinc-300 p-1 flex flex-row items-center justify-center ml-auto">
<FaAngleRight className="group-hover:text-zinc-300 text-lg" />
</button>
</Tooltip>
</span>
);
}