aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'jb-ui/src/components')
-rw-r--r--jb-ui/src/components/Footer.tsx2
-rw-r--r--jb-ui/src/components/Profiling.tsx10
-rw-r--r--jb-ui/src/components/Redemption.tsx14
-rw-r--r--jb-ui/src/components/Wallet.tsx4
4 files changed, 12 insertions, 18 deletions
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 (
<div
diff --git a/jb-ui/src/components/Profiling.tsx b/jb-ui/src/components/Profiling.tsx
index 23b8457..b834c9f 100644
--- a/jb-ui/src/components/Profiling.tsx
+++ b/jb-ui/src/components/Profiling.tsx
@@ -3,7 +3,7 @@ import { useGetMeQuery } from "@/models/authAPI";
import { ChevronRightIcon } from "lucide-react";
import { KeyboardEvent, MouseEvent, useEffect, useRef, useState } from "react";
-import { useAppDispatch, useAppSelector } from "@/hooks";
+import { useAppDispatch } from "@/hooks";
import { bpid } from "@/lib/utils";
import {
createColumnHelper,
@@ -47,7 +47,7 @@ const TextEntry = () => {
// 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<UpkQuestionChoice>) {
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;