chore(v2): replace classnames with clsx (#2895)

This commit is contained in:
Alexey Pyltsyn 2020-06-07 08:40:06 +03:00 committed by GitHub
parent 600ef7ae28
commit afe9ff91a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 76 additions and 80 deletions

View file

@ -8,7 +8,7 @@
import React, {useState, Children} from 'react';
import useUserPreferencesContext from '@theme/hooks/useUserPreferencesContext';
import classnames from 'classnames';
import clsx from 'clsx';
import styles from './styles.module.css';
@ -80,7 +80,7 @@ function Tabs(props) {
<ul
role="tablist"
aria-orientation="horizontal"
className={classnames('tabs', {
className={clsx('tabs', {
'tabs--block': block,
})}>
{values.map(({value, label}) => (
@ -88,7 +88,7 @@ function Tabs(props) {
role="tab"
tabIndex="0"
aria-selected={selectedValue === value}
className={classnames('tabs__item', styles.tabItem, {
className={clsx('tabs__item', styles.tabItem, {
'tabs__item--active': selectedValue === value,
})}
key={value}