forked from pub-solar/pub.solar
Fix JSX warnings
This commit is contained in:
parent
97ae7862e7
commit
b33391ff37
|
@ -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>;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue