Fix JSX warnings
This commit is contained in:
parent
97ae7862e7
commit
b33391ff37
|
@ -7,7 +7,7 @@ export default ({
|
|||
extraScripts,
|
||||
cacheBust,
|
||||
}) => <head>
|
||||
<meta charset="utf-8" />
|
||||
<meta charSet="utf-8" />
|
||||
<title>{ titleFilter(title) }</title>
|
||||
|
||||
<link rel="shortcut icon" href="/assets/pubsolar.svg" />
|
||||
|
@ -21,10 +21,21 @@ export default ({
|
|||
|
||||
<>
|
||||
{(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 || [])
|
||||
.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>;
|
||||
|
|
|
@ -25,7 +25,12 @@ export default ({
|
|||
<Background />
|
||||
<main className="ps-main--page ps-page ps-page_home">
|
||||
{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">
|
||||
<a
|
||||
|
|
Loading…
Reference in a new issue