mirror of https://github.com/explosion/spaCy.git
Add more human-readable class names [ci skip]
This commit is contained in:
parent
162bd4d75b
commit
e711969e3b
|
@ -26,10 +26,10 @@ const Sidebar = ({ items, pageMenu, slug }) => {
|
|||
}, [])
|
||||
|
||||
return (
|
||||
<menu className={classes.root}>
|
||||
<menu className={classNames('sidebar', classes.root)}>
|
||||
{items.map((section, i) => (
|
||||
<ul className={classes.section} key={i}>
|
||||
<li className={classes.label}>{section.label}</li>
|
||||
<li className={classNames('h0', classes.label)}>{section.label}</li>
|
||||
{section.items.map(({ text, url, onClick, menu, isActive }, j) => {
|
||||
const currentMenu = menu || pageMenu || []
|
||||
const active = isActive || slug === url
|
||||
|
@ -43,7 +43,7 @@ const Sidebar = ({ items, pageMenu, slug }) => {
|
|||
to={url}
|
||||
onClick={onClick}
|
||||
className={itemClassNames}
|
||||
activeClassName={classes.isActive}
|
||||
activeClassName={classNames('is-active', classes.isActive)}
|
||||
hideIcon
|
||||
>
|
||||
{text}
|
||||
|
|
|
@ -46,8 +46,10 @@ export const Table = props => <table className={classes.root} {...props} />
|
|||
export const Th = props => <th className={classes.th} {...props} />
|
||||
|
||||
export const Tr = ({ children, ...props }) => {
|
||||
const foot = isFootRow(children)
|
||||
const trClasssNames = classNames(classes.tr, {
|
||||
[classes.footer]: isFootRow(children),
|
||||
[classes.footer]: foot,
|
||||
'table-footer': foot,
|
||||
})
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue