feat: add search input on user profile pages

This commit is contained in:
2026-06-11 12:39:14 +02:00
parent f10b114e83
commit a95be0b131
4 changed files with 38 additions and 5 deletions

View File

@@ -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 ?? []} />