mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Server-side render is-active for crawler
This commit is contained in:
parent
39ace04b55
commit
a0813b93e0
|
@ -54,6 +54,7 @@ const Sidebar = ({ items, pageMenu, slug }) => {
|
||||||
const active = isActive || slug === url
|
const active = isActive || slug === url
|
||||||
const itemClassNames = classNames(classes.link, {
|
const itemClassNames = classNames(classes.link, {
|
||||||
[classes.isActive]: active,
|
[classes.isActive]: active,
|
||||||
|
'is-active': classes.isActive,
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -62,7 +63,6 @@ const Sidebar = ({ items, pageMenu, slug }) => {
|
||||||
to={url}
|
to={url}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
className={itemClassNames}
|
className={itemClassNames}
|
||||||
activeClassName={classNames('is-active', classes.isActive)}
|
|
||||||
hideIcon
|
hideIcon
|
||||||
>
|
>
|
||||||
{text}
|
{text}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user