mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 12:45:32 +08:00
style: fix warning from eslint
This commit is contained in:
@@ -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>{`
|
||||
|
||||
Reference in New Issue
Block a user