Skip to content

Commit

Permalink
First version of search, searches by address and ENS
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Sep 28, 2024
1 parent 4840912 commit 5674b30
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/nextjs/app/search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useState } from "react";
import { useRouter } from "next/navigation";
import { LoadingSpinner } from "../explore/_components/LoadingSpinner";
import { InputBase } from "~~/components/scaffold-eth";
import { AddressInput } from "~~/components/scaffold-eth";

export const Search = () => {
const [searchQuery, setSearchQuery] = useState("");
Expand Down Expand Up @@ -39,10 +39,9 @@ export const Search = () => {

return (
<div className="flex flex-col items-center justify-center min-h-screen py-2">
<h1 className="text-4xl mb-4">Search for Users</h1>
<div className="w-full max-w-md">
<div className="w-full max-w-md px-4">
<div className="mb-4">
<InputBase placeholder="Enter address" value={searchQuery} onChange={setSearchQuery} />
<AddressInput placeholder="Enter address or ENS" value={searchQuery} onChange={setSearchQuery} />
</div>

{error && <p className="text-red-500 mb-4">{error}</p>}
Expand Down

0 comments on commit 5674b30

Please sign in to comment.