Removed unnecessary div elements.

feature/appm-store/pbac
Menaka Jayawardena 7 years ago
parent 4a065f40c9
commit 543dd455b0

@ -95,6 +95,8 @@ class BaseLayout extends Component {
return "Applications"; return "Applications";
} else if (href.indexOf("platforms") !== -1) { } else if (href.indexOf("platforms") !== -1) {
return "Platforms"; return "Platforms";
} else {
return "";
} }
} }
@ -163,23 +165,19 @@ class BaseLayout extends Component {
<Button className="custom-flat grey" onClick={this.onClickPlatforms}> <Button className="custom-flat grey" onClick={this.onClickPlatforms}>
<i className="fw fw-settings"></i> <i className="fw fw-settings"></i>
<FormattedMessage id="Platforms" defaultMessage="Platforms"/> <FormattedMessage id="Platforms" defaultMessage="Platforms"/>
</Button> : </Button> : this.getCurrentPageTitle() === "" ? <div/> :
<Button className="custom-flat grey" onClick={this.onClickApplications}> <Button className="custom-flat grey" onClick={this.onClickApplications}>
<i className="fw fw-application"></i> <i className="fw fw-application"></i>
<FormattedMessage id="Applications" defaultMessage="Applications"/> <FormattedMessage id="Applications" defaultMessage="Applications"/>
</Button> </Button>
} }
</div> </div>
</Col> </Col>
</Row> </Row>
<Row> <Row>
<div id="application-content"> <Col>
<Row> {this.props.children}
<Col> </Col>
{this.props.children}
</Col>
</Row>
</div>
</Row> </Row>
</div> </div>
</Container> </Container>

Loading…
Cancel
Save