Skip to content

Commit

Permalink
feat(home): use nextui input
Browse files Browse the repository at this point in the history
  • Loading branch information
escapedcat committed Nov 12, 2024
1 parent efef695 commit 7002e41
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/pages/Home/ReceiveModal/ReceiveLN.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Alert } from "@/components/Alert";
import AmountInput from "@/components/AmountInput";
import { Button } from "@/components/Button";
import { ConfirmModal } from "@/components/ConfirmModal";
import InputField from "@/components/InputField";
import { stringToNumber } from "@/utils/format";
import { Input } from "@nextui-org/react";
import type { ChangeEvent, FC } from "react";
import { useState } from "react";
import type { SubmitHandler } from "react-hook-form";
Expand Down Expand Up @@ -65,7 +65,15 @@ const ReceiveLN: FC<Props> = ({ isLoading, error, onSubmitHandler }) => {
/>

<div className="mt-2 flex flex-col justify-center">
<InputField
<Input
className="w-full"
classNames={{
inputWrapper:
"bg-tertiary group-data-[focus=true]:bg-tertiary group-data-[hover=true]:bg-tertiary",
}}
type="text"
isInvalid={!!errors.commentInput}
errorMessage={errors.commentInput?.message}
{...register("commentInput", {
onChange: commentChangeHandler,
})}
Expand Down

0 comments on commit 7002e41

Please sign in to comment.