Skip to content

Commit

Permalink
feat: show collection on swap screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cdotta committed Jun 17, 2024
1 parent ae3b96c commit 3cca488
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/components/ui/NumberSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,17 @@ export const NumberSelect = ({
>
<MinusIcon className="w-4" />
</button>
<p className="w-6 text-center text-sm font-medium leading-[160%] text-night-100">
{number}
</p>
<input
value={number}
min={0}
max={max}
onChange={(e) => {
const newValue = Number(e.target.value);
if (isNaN(newValue)) return;
setNumber(Math.min(newValue, max));
}}
className="center w-10 bg-transparent text-center text-sm font-medium text-night-100"
/>
<button
className={cn(
"flex h-6 w-6 items-center justify-center rounded-md text-night-400 opacity-50 transition-colors",
Expand Down

0 comments on commit 3cca488

Please sign in to comment.