Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Refactor FilterInput and ContactList components to use TextField.Inpu…
Browse files Browse the repository at this point in the history
…t instead of TextField.Root
  • Loading branch information
sametcn99 committed Apr 29, 2024
1 parent ed19269 commit 31b806d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/ProfileCard/ContactList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ export default function ContactList({
</Dialog.Title>
{/* Textfield for filtering by name */}
<TextField.Root>
<TextField.Root
<TextField.Input
value={filter}
type="search"
placeholder="Filter by name"
onChange={(e) => setFilter(e.target.value)}
></TextField.Root>
></TextField.Input>
{/* Dropdown for selecting the filter option */}
<DropdownMenu.Root>
<DropdownMenu.Trigger>
Expand Down
4 changes: 2 additions & 2 deletions components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ export default function SearchBar({ className }: { className?: string }) {

<Box className="static flex flex-col items-center justify-center gap-5 ">
<Box className="flex w-full flex-row items-center justify-between gap-3">
<TextField.Root
<TextField.Input
size="3"
className="w-full"
aria-label="Search"
placeholder="Write user name"
onKeyDown={handleKeyPress}
onChange={handleChange}
></TextField.Root>
></TextField.Input>
<DropdownMenu.Root>
<DropdownMenu.Trigger>
<Button className="hover:cursor-pointer">Filter By</Button>
Expand Down

1 comment on commit 31b806d

@vercel
Copy link

@vercel vercel bot commented on 31b806d Apr 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.