fix export
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 8s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 8s
This commit is contained in:
@@ -32,6 +32,7 @@ export function useBackendAPI() {
|
|||||||
const [routesEnabled, setRoutesEnabled] = useState(false);
|
const [routesEnabled, setRoutesEnabled] = useState(false);
|
||||||
const [bridgesEnabled, setBridgesEnabled] = useState(false);
|
const [bridgesEnabled, setBridgesEnabled] = useState(false);
|
||||||
const [fullStateEnabled, setFullStateEnabled] = useState(false);
|
const [fullStateEnabled, setFullStateEnabled] = useState(false);
|
||||||
|
const [snifferStatusEnabled, setSnifferStatusEnabled] = useState(false);
|
||||||
|
|
||||||
// common query options once enabled
|
// common query options once enabled
|
||||||
const commonOptions = {
|
const commonOptions = {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
import { useBackendAPI } from '../hooks/useBackendAPI';
|
|
||||||
import { fetchSnifferStatus } from '../api/apiClient';
|
import { fetchSnifferStatus } from '../api/apiClient';
|
||||||
|
import { useBackendAPI } from '../hooks/useBackendAPI';
|
||||||
|
|
||||||
export default function Sniffing() {
|
export default function Sniffing() {
|
||||||
const {
|
const {
|
||||||
@@ -14,6 +14,7 @@ export default function Sniffing() {
|
|||||||
refreshInterfaces,
|
refreshInterfaces,
|
||||||
isCreating,
|
isCreating,
|
||||||
isRemoving,
|
isRemoving,
|
||||||
|
snifferStatusQuery,
|
||||||
} = useBackendAPI();
|
} = useBackendAPI();
|
||||||
|
|
||||||
// fetch on mount (explicit, since queries are disabled by default)
|
// fetch on mount (explicit, since queries are disabled by default)
|
||||||
@@ -23,7 +24,7 @@ export default function Sniffing() {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const bridges = bridgesQuery.data ?? [];
|
const bridges = bridgesQuery.data ?? [];
|
||||||
const snifferStatus =
|
const snifferStatus = snifferStatusQuery.data;
|
||||||
return (
|
return (
|
||||||
<div className="sniffing-body">
|
<div className="sniffing-body">
|
||||||
<h1>Sniffing</h1>
|
<h1>Sniffing</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user