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

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