mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-03 11:50:19 +03:00
Refactor component
This removes a unnessary `div` and a duplicate link
This commit is contained in:
parent
73344b539e
commit
50ccbcebbf
|
@ -9,15 +9,15 @@ import classes from '../styles/readnext.module.sass'
|
|||
|
||||
export default function ReadNext({ title, to }) {
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
<Link to={to} noLinkLayout>
|
||||
<Link to={to} noLinkLayout className={classes.root}>
|
||||
<span>
|
||||
<Label>Read next</Label>
|
||||
{title}
|
||||
</Link>
|
||||
<Link to={to} noLinkLayout className={classes.icon}>
|
||||
</span>
|
||||
<span className={classes.icon}>
|
||||
<Icon name="arrowright" aria-hidden="true" />
|
||||
</Link>
|
||||
</div>
|
||||
</span>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user