Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function App() {
const [{ data, loading, error }, ] = useAxios(
window.location.protocol + "//" + window.location.host + "/api/status"
)
let content = null
if (loading) {
content = (
)
} else if (error || !data) {
content = (
url: dnsUrl,
params: { name: fqdnTarget, type: "A" },
headers: { accept: "application/dns-json" },
crossdomain: true,
timeout: 1000
},
6: {
url: dnsUrl,
params: { name: fqdnTarget, type: "AAAA" },
headers: { accept: "application/dns-json" },
crossdomain: true,
timeout: 1000
}
};
const [{ data: data4, loading: loading4, error: error4 }] = useAxios(
params[4]
);
const [{ data: data6, loading: loading6, error: error6 }] = useAxios(
params[6]
);
const handleOverride = overridden => {
setTarget({ field: "query_target", value: overridden });
};
const isSelected = value => {
return labelBgStatus[value === queryTarget];
};
const findAnswer = data => {