Adds checking for Blocklists
This commit is contained in:
19
src/components/Results/BlockLists.tsx
Normal file
19
src/components/Results/BlockLists.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
import { Card } from 'components/Form/Card';
|
||||
import Row from 'components/Form/Row';
|
||||
|
||||
const BlockListsCard = (props: {data: any, title: string, actionButtons: any }): JSX.Element => {
|
||||
const blockLists = props.data.blocklists;
|
||||
return (
|
||||
<Card heading={props.title} actionButtons={props.actionButtons}>
|
||||
{ blockLists.map((blocklist: any) => (
|
||||
<Row
|
||||
title={blocklist.serverIp}
|
||||
lbl={blocklist.server}
|
||||
val={blocklist.isBlocked ? '❌ Blocked' : '✅ Not Blocked'} />
|
||||
))}
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
export default BlockListsCard;
|
||||
@@ -217,6 +217,7 @@ const jobNames = [
|
||||
'http-security',
|
||||
'rank',
|
||||
'archives',
|
||||
'block-lists',
|
||||
] as const;
|
||||
|
||||
export const initialJobs = jobNames.map((job: string) => {
|
||||
|
||||
Reference in New Issue
Block a user