Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 31b806d

Browse files
committed
Refactor FilterInput and ContactList components to use TextField.Input instead of TextField.Root
1 parent ed19269 commit 31b806d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/ProfileCard/ContactList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ export default function ContactList({
147147
</Dialog.Title>
148148
{/* Textfield for filtering by name */}
149149
<TextField.Root>
150-
<TextField.Root
150+
<TextField.Input
151151
value={filter}
152152
type="search"
153153
placeholder="Filter by name"
154154
onChange={(e) => setFilter(e.target.value)}
155-
></TextField.Root>
155+
></TextField.Input>
156156
{/* Dropdown for selecting the filter option */}
157157
<DropdownMenu.Root>
158158
<DropdownMenu.Trigger>

components/Search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ export default function SearchBar({ className }: { className?: string }) {
106106

107107
<Box className="static flex flex-col items-center justify-center gap-5 ">
108108
<Box className="flex w-full flex-row items-center justify-between gap-3">
109-
<TextField.Root
109+
<TextField.Input
110110
size="3"
111111
className="w-full"
112112
aria-label="Search"
113113
placeholder="Write user name"
114114
onKeyDown={handleKeyPress}
115115
onChange={handleChange}
116-
></TextField.Root>
116+
></TextField.Input>
117117
<DropdownMenu.Root>
118118
<DropdownMenu.Trigger>
119119
<Button className="hover:cursor-pointer">Filter By</Button>

0 commit comments

Comments
 (0)