Browse Source

chore: remove outer wrapper div

main
Dustin Schau 6 years ago
parent
commit
57cb7abde1
  1. 15
      src/components/CodeExample/CodeExample.js

15
src/components/CodeExample/CodeExample.js

@ -13,16 +13,10 @@ class CodeExample extends Component {
'&:first-child': { '&:first-child': {
marginTop: 0, marginTop: 0,
}, },
[media.greaterThan('xlarge')]: {
marginTop: 80,
},
}}>
<div
css={{
[media.greaterThan('xlarge')]: { [media.greaterThan('xlarge')]: {
display: 'flex', display: 'flex',
flexDirection: 'row', flexDirection: 'row',
marginTop: 80,
}, },
[media.lessThan('large')]: { [media.lessThan('large')]: {
@ -57,12 +51,7 @@ class CodeExample extends Component {
{children} {children}
</div> </div>
)} )}
{loaded ? ( {loaded ? <CodeEditor code={code} /> : <h4>Loading code example...</h4>}
<CodeEditor code={code} />
) : (
<h4>Loading code example...</h4>
)}
</div>
</div> </div>
); );
} }

Loading…
Cancel
Save