From d3fa33b10468202429a2273f83184322e17118d4 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 13 Aug 2023 13:58:23 +0100 Subject: [PATCH] Adds unique id attr to mapped elems --- src/components/Results/MailConfig.tsx | 12 ++++++------ src/components/Results/Sitemap.tsx | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Results/MailConfig.tsx b/src/components/Results/MailConfig.tsx index b69c16d..6ef7f3e 100644 --- a/src/components/Results/MailConfig.tsx +++ b/src/components/Results/MailConfig.tsx @@ -18,22 +18,22 @@ const MailConfigCard = (props: {data: any, title: string, actionButtons: any }): { mailServer.mxRecords && MX Records} - { mailServer.mxRecords && mailServer.mxRecords.map((record: any) => ( - + { mailServer.mxRecords && mailServer.mxRecords.map((record: any, index: number) => ( + {record.exchange} {record.priority ? `Priority: ${record.priority}` : ''} )) } { mailServer.mailServices.length > 0 && External Mail Services} - { mailServer.mailServices && mailServer.mailServices.map((service: any) => ( - + { mailServer.mailServices && mailServer.mailServices.map((service: any, index: number) => ( + )) } { mailServer.txtRecords && Mail-related TXT Records} - { mailServer.txtRecords && mailServer.txtRecords.map((record: any) => ( - + { mailServer.txtRecords && mailServer.txtRecords.map((record: any, index: number) => ( + {record} )) diff --git a/src/components/Results/Sitemap.tsx b/src/components/Results/Sitemap.tsx index 8780a36..6720d83 100644 --- a/src/components/Results/Sitemap.tsx +++ b/src/components/Results/Sitemap.tsx @@ -42,7 +42,7 @@ const SitemapCard = (props: {data: any, title: string, actionButtons: any }): JS { normalSiteMap && normalSiteMap.map((subpage: any, index: number) => { - return () + return () }) } { siteMapIndex &&

@@ -50,7 +50,7 @@ const SitemapCard = (props: {data: any, title: string, actionButtons: any }): JS

} { siteMapIndex && siteMapIndex.map((subpage: any, index: number) => { - return ({getPathFromUrl(subpage.loc[0])}); + return ({getPathFromUrl(subpage.loc[0])}); }) }