Update hosts page optionsComponents to be a getter

pull/10616/head
Delmer Reed 2018-06-22 16:08:17 -04:00
parent e3aaae62b4
commit eb89268a2f
1 changed files with 2 additions and 2 deletions

View File

@ -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 (