mirror of
https://github.com/Lissy93/web-check.git
synced 2025-06-19 19:28:00 +02:00
Adds unique id attr to mapped elems
This commit is contained in:
parent
a8eadf40b0
commit
d3fa33b104
@ -18,22 +18,22 @@ const MailConfigCard = (props: {data: any, title: string, actionButtons: any }):
|
|||||||
<Row lbl="BIMI" val={txtRecords.includes('bimi')} />
|
<Row lbl="BIMI" val={txtRecords.includes('bimi')} />
|
||||||
|
|
||||||
{ mailServer.mxRecords && <Heading as="h3" color={colors.primary} size="small">MX Records</Heading>}
|
{ mailServer.mxRecords && <Heading as="h3" color={colors.primary} size="small">MX Records</Heading>}
|
||||||
{ mailServer.mxRecords && mailServer.mxRecords.map((record: any) => (
|
{ mailServer.mxRecords && mailServer.mxRecords.map((record: any, index: number) => (
|
||||||
<Row lbl="" val="">
|
<Row lbl="" val="" key={index}>
|
||||||
<span>{record.exchange}</span>
|
<span>{record.exchange}</span>
|
||||||
<span>{record.priority ? `Priority: ${record.priority}` : ''}</span>
|
<span>{record.priority ? `Priority: ${record.priority}` : ''}</span>
|
||||||
</Row>
|
</Row>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
{ mailServer.mailServices.length > 0 && <Heading as="h3" color={colors.primary} size="small">External Mail Services</Heading>}
|
{ mailServer.mailServices.length > 0 && <Heading as="h3" color={colors.primary} size="small">External Mail Services</Heading>}
|
||||||
{ mailServer.mailServices && mailServer.mailServices.map((service: any) => (
|
{ mailServer.mailServices && mailServer.mailServices.map((service: any, index: number) => (
|
||||||
<Row lbl={service.provider} val={service.value} />
|
<Row lbl={service.provider} val={service.value} key={index} />
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
{ mailServer.txtRecords && <Heading as="h3" color={colors.primary} size="small">Mail-related TXT Records</Heading>}
|
{ mailServer.txtRecords && <Heading as="h3" color={colors.primary} size="small">Mail-related TXT Records</Heading>}
|
||||||
{ mailServer.txtRecords && mailServer.txtRecords.map((record: any) => (
|
{ mailServer.txtRecords && mailServer.txtRecords.map((record: any, index: number) => (
|
||||||
<Row lbl="" val="">
|
<Row lbl="" val="" key={index}>
|
||||||
<span>{record}</span>
|
<span>{record}</span>
|
||||||
</Row>
|
</Row>
|
||||||
))
|
))
|
||||||
|
@ -42,7 +42,7 @@ const SitemapCard = (props: {data: any, title: string, actionButtons: any }): JS
|
|||||||
<Card heading={props.title} actionButtons={props.actionButtons} styles={cardStyles}>
|
<Card heading={props.title} actionButtons={props.actionButtons} styles={cardStyles}>
|
||||||
{
|
{
|
||||||
normalSiteMap && normalSiteMap.map((subpage: any, index: number) => {
|
normalSiteMap && normalSiteMap.map((subpage: any, index: number) => {
|
||||||
return (<ExpandableRow lbl={getPathFromUrl(subpage.loc[0])} val="" rowList={makeExpandableRowData(subpage)}></ExpandableRow>)
|
return (<ExpandableRow lbl={getPathFromUrl(subpage.loc[0])} key={index} val="" rowList={makeExpandableRowData(subpage)}></ExpandableRow>)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
{ siteMapIndex && <p>
|
{ siteMapIndex && <p>
|
||||||
@ -50,7 +50,7 @@ const SitemapCard = (props: {data: any, title: string, actionButtons: any }): JS
|
|||||||
</p>}
|
</p>}
|
||||||
{
|
{
|
||||||
siteMapIndex && siteMapIndex.map((subpage: any, index: number) => {
|
siteMapIndex && siteMapIndex.map((subpage: any, index: number) => {
|
||||||
return (<Row lbl="" val=""><a href={subpage.loc[0]}>{getPathFromUrl(subpage.loc[0])}</a></Row>);
|
return (<Row lbl="" val="" key={index}><a href={subpage.loc[0]}>{getPathFromUrl(subpage.loc[0])}</a></Row>);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</Card>
|
</Card>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user