feat: add search input on user profile pages
This commit is contained in:
@@ -24,6 +24,8 @@ function ProfilePage() {
|
||||
view: "trends",
|
||||
})
|
||||
|
||||
const [search, setSearch] = useState("")
|
||||
|
||||
if (!auth) return null
|
||||
if (isPending) return <ProfileSkeleton />
|
||||
if (!data) return null
|
||||
@@ -39,6 +41,8 @@ function ProfilePage() {
|
||||
|
||||
<ProfileView
|
||||
data={data}
|
||||
search={search}
|
||||
onSearchChange={setSearch}
|
||||
actions={
|
||||
<>
|
||||
<GoalSection goals={data.goals ?? []} />
|
||||
|
||||
Reference in New Issue
Block a user