diff options
| author | Max Nanis | 2026-09-13 11:43:52 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-13 11:43:52 -0700 |
| commit | b464e311b44a5f3baeb1568ba55b6322a1a11638 (patch) | |
| tree | f478c15fdd1f886ed96135867aa6b32f2b599bee /jb-ui/src/pages/Transfer.tsx | |
| parent | 83821dff9984fb950e53f23baf99d7a74fb88abd (diff) | |
| download | amt-jb-b464e311b44a5f3baeb1568ba55b6322a1a11638.tar.gz amt-jb-b464e311b44a5f3baeb1568ba55b6322a1a11638.zip | |
Fix pnpm build error requirements
Diffstat (limited to 'jb-ui/src/pages/Transfer.tsx')
| -rw-r--r-- | jb-ui/src/pages/Transfer.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/jb-ui/src/pages/Transfer.tsx b/jb-ui/src/pages/Transfer.tsx index 0d174c1..8079da2 100644 --- a/jb-ui/src/pages/Transfer.tsx +++ b/jb-ui/src/pages/Transfer.tsx @@ -1,5 +1,5 @@ import { type FormEvent, useState } from "react"; -import { useAppDispatch, useAppSelector } from "@/hooks"; +import { useAppSelector } from "@/hooks"; import { useGetMeQuery } from "@/models/authAPI"; import { Button } from "@/components/ui/button"; import max_lulu from "./max-and-lulu.jpg"; @@ -41,10 +41,14 @@ const TransferComplete = function () { type RequestState = "idle" | "working" | "sent" | "failed"; -const TransferSubmit = function ({ onSubmitSuccess }) { +interface TransferSubmitProps { + onSubmitSuccess: () => void; +} + +const TransferSubmit = function ({ onSubmitSuccess }: TransferSubmitProps) { const [email, setEmail] = useState(""); const [state, setState] = useState<RequestState>("idle"); - const { data: user, isLoading, isError } = useGetMeQuery(); + const { data: user } = useGetMeQuery(); const submit = async (event: FormEvent<HTMLFormElement>) => { event.preventDefault(); @@ -133,7 +137,6 @@ const TransferSubmit = function ({ onSubmitSuccess }) { const Transfer = function () { const bpuid = useAppSelector((state) => state.app.bpuid); - const { data: user, isLoading, isError } = useGetMeQuery(); const [submitted, setSubmitted] = useState(false); if (!bpuid) { |
