diff --git a/ui/src/alerts/containers/AlertsApp.tsx b/ui/src/alerts/containers/AlertsApp.tsx index 1a6b22548..35c8fd6a1 100644 --- a/ui/src/alerts/containers/AlertsApp.tsx +++ b/ui/src/alerts/containers/AlertsApp.tsx @@ -111,7 +111,7 @@ class AlertsApp extends PureComponent { ) } - private renderPageControls = (): JSX.Element => { + private get renderPageControls(): JSX.Element { const {timeRange} = this.state return ( diff --git a/ui/src/dashboards/components/DashboardHeader.tsx b/ui/src/dashboards/components/DashboardHeader.tsx index 4f1c76413..aae70d65e 100644 --- a/ui/src/dashboards/components/DashboardHeader.tsx +++ b/ui/src/dashboards/components/DashboardHeader.tsx @@ -59,7 +59,7 @@ class DashboardHeader extends Component { ) } - private renderPageTitle = (): JSX.Element => { + private get renderPageTitle(): JSX.Element { return ( <> {this.dashboardSwitcher} @@ -68,7 +68,7 @@ class DashboardHeader extends Component { ) } - private renderPageControls = (): JSX.Element => { + private get renderPageControls(): JSX.Element { const { handleChooseAutoRefresh, onManualRefresh, diff --git a/ui/src/data_explorer/containers/DataExplorer.tsx b/ui/src/data_explorer/containers/DataExplorer.tsx index 0ffc02c85..c751b50e3 100644 --- a/ui/src/data_explorer/containers/DataExplorer.tsx +++ b/ui/src/data_explorer/containers/DataExplorer.tsx @@ -186,7 +186,7 @@ export class DataExplorer extends PureComponent { return buildRawText(this.activeQuery, timeRange) } - private renderPageControls = (): JSX.Element => { + private get renderPageControls(): JSX.Element { const { timeRange, autoRefresh, diff --git a/ui/src/flux/components/FluxHeader.tsx b/ui/src/flux/components/FluxHeader.tsx index b9f381efd..ee9c20aed 100644 --- a/ui/src/flux/components/FluxHeader.tsx +++ b/ui/src/flux/components/FluxHeader.tsx @@ -27,7 +27,7 @@ class FluxHeader extends PureComponent { ) } - private renderPageControls = (): JSX.Element => { + private get renderPageControls(): JSX.Element { return (