Re-wrote all the requests to use a custom, reusable hook

This commit is contained in:
Alicia Sykes
2023-06-27 22:50:25 +01:00
parent e9a8dd0d9d
commit ad99063bdf
9 changed files with 269 additions and 301 deletions

View File

@@ -140,6 +140,7 @@ const jobNames = [
'headers',
'lighthouse',
'location',
'shodan',
// 'server-info',
'whois',
] as const;
@@ -307,6 +308,7 @@ const ProgressLoader = (props: { loadStatus: LoadingJob[] }): JSX.Element => {
color2={barColors[state][1]}
title={`${state} (${Math.round(percentages[state])}%)`}
width={percentages[state]}
key={`progress-bar-${state}`}
/>
)}
</ProgressBarContainer>