docs(scanner): added in instructions on how to update the scanner
only test2 stage now commands for now.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { useSuspenseQuery } from "@tanstack/react-query";
|
||||
import {
|
||||
Sidebar,
|
||||
SidebarContent,
|
||||
@@ -6,12 +7,14 @@ import {
|
||||
SidebarMenuItem,
|
||||
} from "@/components/ui/sidebar";
|
||||
import { useSession } from "@/lib/auth-client";
|
||||
import { getSettings } from "../../lib/queries/getSettings";
|
||||
import AdminSidebar from "./AdminBar";
|
||||
import DocBar from "./DocBar";
|
||||
import MobileBar from "./MobileBar";
|
||||
|
||||
export function AppSidebar() {
|
||||
const { data: session } = useSession();
|
||||
const { data: settings, isLoading } = useSuspenseQuery(getSettings());
|
||||
|
||||
return (
|
||||
<Sidebar
|
||||
@@ -24,7 +27,11 @@ export function AppSidebar() {
|
||||
<SidebarMenuItem>
|
||||
<SidebarContent>
|
||||
<DocBar />
|
||||
<MobileBar session={session} />
|
||||
{!isLoading &&
|
||||
settings.filter((n: any) => n.name === "mobile")[0].active && (
|
||||
<MobileBar />
|
||||
)}
|
||||
|
||||
{session &&
|
||||
(session.user.role === "admin" ||
|
||||
session.user.role === "systemAdmin" ||
|
||||
|
||||
Reference in New Issue
Block a user