1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

update query hooks to support react-query 3 [skip ci]

This commit is contained in:
checktheroads
2020-12-29 16:50:26 -07:00
parent fc018955c0
commit 16f02df836
8 changed files with 60 additions and 57 deletions

View File

@@ -20,7 +20,7 @@ export const Chart = (props: TChart) => {
const flowProps = useBreakpointValue<Omit<ReactFlowProps, 'elements'>>({
base: { defaultPosition: [0, 300], defaultZoom: 0 },
lg: { defaultPosition: [100, 300], defaultZoom: 0.7 },
});
}) ?? { defaultPosition: [100, 300], defaultZoom: 0.7 };
const elements = useMemo(() => [...buildElements({ asn: primary_asn, name: org_name }, data)], [
data,
@@ -45,7 +45,7 @@ const ASNode = (props: TNode<TNodeData>) => {
const color = useColorValue('black', 'white');
const bg = useColorValue('white', 'whiteAlpha.100');
const { data: asnData, isError, isLoading } = useASNDetail(asn);
const { data: asnData, isError, isLoading } = useASNDetail(String(asn));
return (
<>