added connectedDispatcher Query
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-0 left-0 w-[300px] ">
|
||||
|
||||
Reference in New Issue
Block a user