Update hosts page optionsComponents to be a getter
parent
e3aaae62b4
commit
eb89268a2f
|
@ -116,7 +116,7 @@ export class HostsPage extends Component {
|
||||||
<div className="page hosts-list-page">
|
<div className="page hosts-list-page">
|
||||||
<PageHeader
|
<PageHeader
|
||||||
titleText="Host List"
|
titleText="Host List"
|
||||||
optionsComponents={this.optionsComponents()}
|
optionsComponents={this.optionsComponents}
|
||||||
sourceIndicator={true}
|
sourceIndicator={true}
|
||||||
/>
|
/>
|
||||||
<div className="page-contents">
|
<div className="page-contents">
|
||||||
|
@ -137,7 +137,7 @@ export class HostsPage extends Component {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
optionsComponents = () => {
|
get optionsComponents() {
|
||||||
const {autoRefresh, onChooseAutoRefresh, onManualRefresh} = this.props
|
const {autoRefresh, onChooseAutoRefresh, onManualRefresh} = this.props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue