Skip to content

Commit

Permalink
convert Bytes32 and BytesInput suffix to button
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Nov 21, 2024
1 parent d4d05f2 commit fd3fa3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ export const Bytes32Input = ({ value, onChange, name, placeholder, disabled }: C
onChange={onChange}
disabled={disabled}
suffix={
<div
<button
className="self-center cursor-pointer text-xl font-semibold px-4 text-accent"
onClick={convertStringToBytes32}
type="button"
>
#
</div>
</button>
}
/>
);
Expand Down
5 changes: 3 additions & 2 deletions packages/nextjs/components/scaffold-eth/Input/BytesInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ export const BytesInput = ({ value, onChange, name, placeholder, disabled }: Com
onChange={onChange}
disabled={disabled}
suffix={
<div
<button
className="self-center cursor-pointer text-xl font-semibold px-4 text-accent"
onClick={convertStringToBytes}
type="button"
>
#
</div>
</button>
}
/>
);
Expand Down

0 comments on commit fd3fa3e

Please sign in to comment.