Commit 488867e6 authored by afc163's avatar afc163

code style

parent a924c484
...@@ -7,10 +7,19 @@ export default ({ className, links, copyright }) => { ...@@ -7,10 +7,19 @@ export default ({ className, links, copyright }) => {
return ( return (
<div className={clsString}> <div className={clsString}>
{ {
links && links && (
<div className={styles.links}> <div className={styles.links}>
{links.map(link => <a key={link.title} target={link.blankTarget ? '_blank' : '_self'} href={link.href}>{link.title}</a>)} {links.map(link => (
<a
key={link.title}
target={link.blankTarget ? '_blank' : '_self'}
href={link.href}
>
{link.title}
</a>
))}
</div> </div>
)
} }
{copyright && <div className={styles.copyright}>{copyright}</div>} {copyright && <div className={styles.copyright}>{copyright}</div>}
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment