housekeeping: remove Topbar CWM & unneeded empty lines (via #5018)

* removed componentWillMount and removed unneeded empty lines

* saved file again
This commit is contained in:
Jennifer Kaplan
2018-11-12 08:28:28 -05:00
committed by kyle
parent ad786b023f
commit aec4e378ce
5 changed files with 68 additions and 91 deletions

View File

@@ -69,11 +69,12 @@ export default class Topbar extends React.Component {
}
}
componentWillMount() {
componentDidMount() {
const configs = this.props.getConfigs()
const urls = configs.urls || []
if(urls && urls.length) {
this.loadSpec(urls[this.state.selectedIndex].url)
let primaryName = configs["urls.primaryName"]
if(primaryName)
{
@@ -87,14 +88,6 @@ export default class Topbar extends React.Component {
}
}
componentDidMount() {
const urls = this.props.getConfigs().urls || []
if(urls && urls.length) {
this.loadSpec(urls[this.state.selectedIndex].url)
}
}
onFilterChange =(e) => {
let {target: {value}} = e
this.props.layoutActions.updateFilter(value)

View File

@@ -1,6 +1,3 @@
.info
{
margin: 50px 0;

View File

@@ -11,18 +11,6 @@
{
display: flex;
flex-direction: column;
&.is-open
{
.opblock-tag
{
// svg
// {
// -moz-transform: rotate(90deg);
// transform: rotate(90deg);
// }
}
}
}
.opblock-tag

View File

@@ -1,4 +1,3 @@
$gray-base: #000 !default;
$white: #fff !default;
$gray-50: #ebebeb !default;