Fix JSX warnings

This commit is contained in:
Benjamin Bädorf 2022-10-20 18:12:31 +02:00
parent 97ae7862e7
commit b33391ff37
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
2 changed files with 20 additions and 4 deletions

View file

@ -7,7 +7,7 @@ export default ({
extraScripts, extraScripts,
cacheBust, cacheBust,
}) => <head> }) => <head>
<meta charset="utf-8" /> <meta charSet="utf-8" />
<title>{ titleFilter(title) }</title> <title>{ titleFilter(title) }</title>
<link rel="shortcut icon" href="/assets/pubsolar.svg" /> <link rel="shortcut icon" href="/assets/pubsolar.svg" />
@ -21,10 +21,21 @@ export default ({
<> <>
{(extraStylesheets || []) {(extraStylesheets || [])
.map(extraStylesheet => <link rel="stylesheet" type="text/css" href={`${extraStylesheet}${cacheBust}`} media="all" />)} .map(extraStylesheet => <link
rel="stylesheet"
type="text/css"
href={`${extraStylesheet}${cacheBust}`}
media="all"
key={extraStylesheet}
/>)}
</> </>
<> <>
{(extraScripts || []) {(extraScripts || [])
.map(extraScript => <script defer type="application/javascript" src={`${extraScript}${cacheBust}`}></script>)} .map(extraScript => <script
defer
type="application/javascript"
src={`${extraScript}${cacheBust}`}
key={extraScript}
></script>)}
</> </>
</head>; </head>;

View file

@ -25,7 +25,12 @@ export default ({
<Background /> <Background />
<main className="ps-main--page ps-page ps-page_home"> <main className="ps-main--page ps-page ps-page_home">
{links.map(({ href, title, openInNewTab }) => {links.map(({ href, title, openInNewTab }) =>
<a href={href} target={openInNewTab ? '_blank' : '_self'} className="ps-page--link">{title}</a> <a
href={href}
target={openInNewTab ? '_blank' : '_self'}
className="ps-page--link"
key={href}
>{title}</a>
)} )}
<footer className="ps-footer"> <footer className="ps-footer">
<a <a