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

@ -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"

View file

@ -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,
)}>