style: fix warning from eslint

This commit is contained in:
unix
2020-03-19 02:05:17 +08:00
parent 1b2365b89f
commit 596f134c25
22 changed files with 39 additions and 32 deletions

View File

@@ -14,7 +14,7 @@ interface Props {
code: string
scope: {
[key: string]: any
},
}
}
const defaultProps = {
@@ -124,11 +124,11 @@ const Playground: React.FC<PlaygroundProps> = React.memo(props => {
<Title title={props.title} desc={props.desc} />
<div className="playground">
<LiveProvider code={code} scope={props.scope} theme={codeTheme}>
<div className="wrapper">
<LivePreview />
<LiveError />
</div>
{editor(code)}
<div className="wrapper">
<LivePreview />
<LiveError />
</div>
{editor(code)}
</LiveProvider>
<style jsx>{`