Skip to content
Snippets Groups Projects
Commit f0ef1ccb authored by Matt Kirby's avatar Matt Kirby
Browse files

Search now uses useFriends hook

parent 6c19f4a3
1 merge request!18Fe search and friends (sorry in advance)
import UserSearch from "@/components/form/UserSearch";
import NavBar from "@/components/navigation/NavBar";
import { useFriends } from "@/hooks/useFriends";
import { useUser } from "@/hooks/useUser";
const Search = () => {
const user = useUser()
const friends = useFriends()
return (
<div>
<NavBar user={user} />
<div className="pt-20 p-3 max-w-4xl mx-auto">
<UserSearch limit={100}/>
<UserSearch limit={100} friends={friends}/>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment