mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 08:19:07 +02:00
chore(v2): replace classnames with clsx (#2895)
This commit is contained in:
parent
600ef7ae28
commit
afe9ff91a4
26 changed files with 76 additions and 80 deletions
|
@ -9,8 +9,8 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@philpl/buble": "^0.19.7",
|
||||
"classnames": "^2.2.6",
|
||||
"clipboard": "^2.0.6",
|
||||
"clsx": "^1.1.1",
|
||||
"parse-numeric-range": "^0.0.2",
|
||||
"prism-react-renderer": "^1.1.0",
|
||||
"react-live": "^2.2.1"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import * as React from 'react';
|
||||
import {LiveProvider, LiveEditor, LiveError, LivePreview} from 'react-live';
|
||||
import classnames from 'classnames';
|
||||
import clsx from 'clsx';
|
||||
|
||||
import styles from './styles.module.css';
|
||||
|
||||
|
@ -19,7 +19,7 @@ function Playground({children, theme, transformCode, ...props}) {
|
|||
theme={theme}
|
||||
{...props}>
|
||||
<div
|
||||
className={classnames(
|
||||
className={clsx(
|
||||
styles.playgroundHeader,
|
||||
styles.playgroundEditorHeader,
|
||||
)}>
|
||||
|
@ -27,7 +27,7 @@ function Playground({children, theme, transformCode, ...props}) {
|
|||
</div>
|
||||
<LiveEditor className={styles.playgroundEditor} />
|
||||
<div
|
||||
className={classnames(
|
||||
className={clsx(
|
||||
styles.playgroundHeader,
|
||||
styles.playgroundPreviewHeader,
|
||||
)}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue