From 5b6d3834a3fcc528695bb09fe7d830ac23d8234f Mon Sep 17 00:00:00 2001 From: escapedcat Date: Tue, 12 Nov 2024 14:33:51 +0100 Subject: [PATCH] feat(components): use nextui input --- src/components/AmountInput.tsx | 51 ++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/src/components/AmountInput.tsx b/src/components/AmountInput.tsx index a72701a1..54b3275f 100644 --- a/src/components/AmountInput.tsx +++ b/src/components/AmountInput.tsx @@ -1,6 +1,7 @@ import { AppContext, Unit } from "@/context/app-context"; import { convertBtcToSat, convertSatToBtc, formatAmount } from "@/utils/format"; import { ArrowsRightLeftIcon } from "@heroicons/react/24/outline"; +import { Input } from "@nextui-org/react"; import { ChangeEvent, FC, useContext, useState } from "react"; import type { FieldError, UseFormRegisterReturn } from "react-hook-form"; import { useTranslation } from "react-i18next"; @@ -62,27 +63,35 @@ const AmountInput: FC = ({ return ( <> - -
- - - {unit} - - -
+ + + {unit} + + + + } + />