aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src/JBApp.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'jb-ui/src/JBApp.tsx')
-rw-r--r--jb-ui/src/JBApp.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/jb-ui/src/JBApp.tsx b/jb-ui/src/JBApp.tsx
index 4870e9b..c55cd73 100644
--- a/jb-ui/src/JBApp.tsx
+++ b/jb-ui/src/JBApp.tsx
@@ -13,7 +13,6 @@ import {
UserWalletBalanceResponse,
UserLedgerWallets,
UserLedgerWalletAccountTypeEnum,
- UserDisplayedWalletBalance,
WalletApi,
CashoutMethodsResponse,
} from "@/api_fsb";
@@ -33,9 +32,7 @@ import { addCashoutMethods } from "@/models/cashoutMethodsSlice";
import { addEvent } from "@/models/grlEventsSlice";
import { addStatsData } from "@/models/grlStatsSlice";
-import Home from "@/pages/Home";
import MagicLink from "@/pages/MagicLink";
-import Preview from "@/pages/Preview";
import Result from "@/pages/Result";
import clsx from "clsx";
@@ -44,7 +41,6 @@ import Transfer from "@/pages/Transfer";
import {
BrowserRouter,
Outlet,
- useLocation,
useMatch,
Route,
Routes,
@@ -83,7 +79,7 @@ function isPingMessage(msg: Message): msg is PingMessage {
function QueryParamProcessor() {
const dispatch = useAppDispatch();
const [searchParams] = useSearchParams();
- const { data: user, isLoading, isError } = useGetMeQuery();
+ const { data: user } = useGetMeQuery();
useEffect(() => {
if (user?.product_user_id) {
@@ -169,8 +165,6 @@ function QueryParamProcessor() {
}
const Layout = () => {
- const location = useLocation();
-
const isWork = useMatch("/work/*");
const isPreview = useMatch("/preview/*");
const isSpecialSubview = Boolean(isWork || isPreview);