Skip to content

Commit

Permalink
added div (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
dibericky authored and davidebianchi committed Jul 4, 2019
1 parent f7ef668 commit 695a8e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/api-explorer/src/components/BlockWithTab/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment } from 'react'
import React from 'react'
import PropTypes from 'prop-types'

import colors from '../../colors'
Expand Down Expand Up @@ -32,7 +32,7 @@ export default function BlockWithTab({
}
const styleSelected = { ...style.selected, ...styleSelectedItem }
return (
<Fragment>
<div>
<ul style={{ ...style.ul, ...styleList }}>
{items.map(item => {
return (
Expand All @@ -55,7 +55,7 @@ export default function BlockWithTab({
})}
</ul>
{children}
</Fragment>
</div>
)
}
BlockWithTab.propTypes = {
Expand Down
16 changes: 11 additions & 5 deletions packages/api-explorer/src/components/SchemaTabs/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,17 @@ export default class SchemaTabs extends Component {
})
}}
>
{
selected === 'request' ?
this.renderRequestSchema() :
this.renderResponseSchema()
}
<div style={{
paddingTop: 10
}}
>

{
selected === 'request' ?
this.renderRequestSchema() :
this.renderResponseSchema()
}
</div>
</BlockWithTab>
)
}
Expand Down

0 comments on commit 695a8e6

Please sign in to comment.