Start displaying lib items

This commit is contained in:
prayag17 committed 2023-04-04 14:36:07 +05:30
1 parent 9aea2e4750
commit ee524b57c7
2 files changed
+34 -2

No files matched your search

+4
View File
@@ -12,6 +12,7 @@ import { MdiMagnify } from "../icons/mdiMagnify";
import { theme } from "../../theme";
import { useSelector } from "react-redux";
import { useLocation } from "react-router-dom";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { useQueryClient, useQuery } from "@tanstack/react-query";
@@ -24,6 +25,9 @@ export const AppBar = () => {
const visible = useSelector((state) => state.appBar.visible);
const backdropVisible = useSelector((state) => state.appBar.backdrop);
const location = useLocation();
console.log(location);
const user = useQuery({
queryKey: ["appBar", "user"],
queryFn: async () => {