Merge branch 'main' of https://github.com/VAR-Virtual-Air-Rescue/var-monorepo
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { getConnectedDispatcherAPI } from "_querys/connected-user";
|
||||
import { useState } from "react";
|
||||
|
||||
export const ConnectedDispatcher = () => {
|
||||
const [open, setOpen] = useState(false);
|
||||
const {} = useQuery({
|
||||
queryKey: [""],
|
||||
const { data: dispatcher } = useQuery({
|
||||
queryKey: ["dispatcher"],
|
||||
queryFn: () => getConnectedDispatcherAPI(),
|
||||
refetchInterval: 10000,
|
||||
});
|
||||
console.log("ConnectedDispatcher", dispatcher);
|
||||
|
||||
return (
|
||||
<div className="absolute top-5 right-10 min-w-120 z-99999">
|
||||
|
||||
Reference in New Issue
Block a user