Skip to content

Commit

Permalink
fix: fix design of search form
Browse files Browse the repository at this point in the history
Fixes design of search input, button, removes label (placeholder text present instead).
  • Loading branch information
martinkyselak committed Jan 4, 2024
1 parent b85019a commit 7badbd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/SearchWalletForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,20 @@ export function SearchWalletForm({ onSearch }: Props) {
return (
<form noValidate className="border-b py-2" onSubmit={handleSubmit(onSearch)}>
<div className={fieldStyle}>
<label htmlFor="address">Wallet Address</label>
<input
type="text"
id="address"
placeholder="Wallet address..."
{...register('address', { required: 'You must enter a wallet address' })}
className={getEditorStyle(errors.address)}
className={'p-2 ' + getEditorStyle(errors.address)}
/>
<ValidationError fieldError={errors.address} />
</div>
<div className={fieldStyle}>
<button
type="submit"
disabled={isSubmitting}
className="mt-2 h-10 px-4 font-semibold bg-slate-700 text-white self-start"
className="mt-2 p-2 font-semibold bg-slate-700 text-white self-start"
>
Search
</button>
Expand Down

0 comments on commit 7badbd9

Please sign in to comment.