41 lines
1.0 KiB
JavaScript
41 lines
1.0 KiB
JavaScript
import React, { PropTypes } from "react"
|
|
|
|
export default class StandaloneLayout extends React.Component {
|
|
|
|
static propTypes = {
|
|
errSelectors: PropTypes.object.isRequired,
|
|
errActions: PropTypes.object.isRequired,
|
|
specActions: PropTypes.object.isRequired,
|
|
specSelectors: PropTypes.object.isRequired,
|
|
layoutSelectors: PropTypes.object.isRequired,
|
|
layoutActions: PropTypes.object.isRequired,
|
|
getComponent: PropTypes.func.isRequired
|
|
}
|
|
|
|
render() {
|
|
let { getComponent } = this.props
|
|
|
|
let Container = getComponent("Container")
|
|
let Row = getComponent("Row")
|
|
let Col = getComponent("Col")
|
|
|
|
const Topbar = getComponent("Topbar", true)
|
|
const BaseLayout = getComponent("BaseLayout", true)
|
|
const OnlineValidatorBadge = getComponent("onlineValidatorBadge", true)
|
|
|
|
return (
|
|
|
|
<Container className='swagger-ui'>
|
|
{ Topbar ? <Topbar/> : null }
|
|
<BaseLayout></BaseLayout>
|
|
<Row>
|
|
<Col>
|
|
<OnlineValidatorBadge />
|
|
</Col>
|
|
</Row>
|
|
</Container>
|
|
)
|
|
}
|
|
|
|
}
|