From b464e311b44a5f3baeb1568ba55b6322a1a11638 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Sun, 13 Sep 2026 11:43:52 -0700 Subject: Fix pnpm build error requirements --- jb-ui/src/components/Footer.tsx | 2 +- jb-ui/src/components/Profiling.tsx | 10 +++++----- jb-ui/src/components/Redemption.tsx | 14 ++++---------- jb-ui/src/components/Wallet.tsx | 4 ++-- 4 files changed, 12 insertions(+), 18 deletions(-) (limited to 'jb-ui/src/components') diff --git a/jb-ui/src/components/Footer.tsx b/jb-ui/src/components/Footer.tsx index ec458f2..e65255f 100644 --- a/jb-ui/src/components/Footer.tsx +++ b/jb-ui/src/components/Footer.tsx @@ -1,7 +1,7 @@ import { useGetMeQuery } from "@/models/authAPI"; const Footer = () => { - const { data: user, isLoading, isError } = useGetMeQuery(); + const { data: user } = useGetMeQuery(); return (
{ // const selectAnswer = useSelector(selectAnswerForQuestion(question)); const metadata = activeQuestion?._metadata; const validation = activeQuestion?._validation; - const { data: user, isLoading, isError } = useGetMeQuery(); + const { data: user } = useGetMeQuery(); if (!metadata) return null; if (!validation) return null; @@ -113,7 +113,7 @@ export default function useKeyboardMode(rowModel: RowModel) { const dispatch = useAppDispatch(); const activeQuestion = useSelector(selectActiveQuestion); - const { data: user, isLoading, isError } = useGetMeQuery(); + const { data: user } = useGetMeQuery(); const keyboardSelectionIdxRef = useRef(0); @@ -514,7 +514,7 @@ const ProfilingQuestionSubmitButton = () => { const activeQuestion = useSelector(selectActiveQuestion); const activeQuestionValidation = useSelector(selectActiveQuestionValidation); - const { data: user, isLoading, isError } = useGetMeQuery(); + const { data: user } = useGetMeQuery(); const handleOnClick = () => { if (!activeQuestion) return; @@ -759,7 +759,7 @@ const Profiling = () => { const [showProfiling, setShowProfiling] = useState(false); const dispatch = useAppDispatch(); - const { data: user, isLoading, isError } = useGetMeQuery(); + const { data: user } = useGetMeQuery(); useEffect(() => { if (!user?.product_user_id) return; diff --git a/jb-ui/src/components/Redemption.tsx b/jb-ui/src/components/Redemption.tsx index 0a91ab3..1d76f17 100644 --- a/jb-ui/src/components/Redemption.tsx +++ b/jb-ui/src/components/Redemption.tsx @@ -1,14 +1,10 @@ import { clsx } from "clsx"; -import { useAppDispatch, useAppSelector } from "@/hooks"; -import { UpkQuestionChoice } from "@/api_fsb"; -import { useGetMeQuery } from "@/models/authAPI"; -import { ChevronRightIcon } from "lucide-react"; -import { KeyboardEvent, MouseEvent, useEffect, useRef, useState } from "react"; -import { useSelector } from "react-redux"; -import { cashoutMethodsSelectors } from "@/models/cashoutMethodsSlice"; +import { useState } from "react"; +// import { useSelector } from "react-redux"; +// import { cashoutMethodsSelectors } from "@/models/cashoutMethodsSlice"; const RedemptionHeader = () => { - const cashout_methods = useSelector(cashoutMethodsSelectors.selectAll); + // const cashout_methods = useSelector(cashoutMethodsSelectors.selectAll); return ( <> @@ -32,8 +28,6 @@ const RedemptionModalBody = () => { }; const Redemption = () => { - const dispatch = useAppDispatch(); - const { data: user, isLoading, isError } = useGetMeQuery(); const [showRedemption, setShowRedemption] = useState(false); return ( diff --git a/jb-ui/src/components/Wallet.tsx b/jb-ui/src/components/Wallet.tsx index 3bb23a9..819eff7 100644 --- a/jb-ui/src/components/Wallet.tsx +++ b/jb-ui/src/components/Wallet.tsx @@ -194,7 +194,7 @@ const WalletTransactionsHeader = () => { const WalletTransactions = () => { const dispatch = useAppDispatch(); - const { data: user, isLoading, isError } = useGetMeQuery(); + const { data: user } = useGetMeQuery(); const userLedgerTxs = useAppSelector((state) => state.app.userLedgerTxs); const txPagination = useAppSelector((state) => state.app.txPagination); @@ -446,7 +446,7 @@ const WalletTransactions = () => { const Wallet = () => { const dispatch = useAppDispatch(); const pagination = useAppSelector((state) => state.app.txPagination); - const { data: user, isLoading, isError } = useGetMeQuery(); + const { data: user } = useGetMeQuery(); useEffect(() => { if (!user?.product_user_id) return; -- cgit v1.2.3