Skip to content

Commit

Permalink
Rename component
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Oct 22, 2024
1 parent 10ea0e3 commit 84c47d4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface Props {
isAutoRefreshing?: boolean;
}

export function BurnRates({ slo, isAutoRefreshing }: Props) {
export function BurnRatePanel({ slo, isAutoRefreshing }: Props) {
const burnRateWindows = useFetchBurnRateWindows(slo);
const [selectedWindow, setSelectedwindow] = useState(burnRateWindows[0]);
const { isLoading, data } = useFetchSloBurnRates({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { EuiFlexGroup } from '@elastic/eui';
import { SLOWithSummaryResponse } from '@kbn/slo-schema';
import moment from 'moment';
import React, { useEffect, useState } from 'react';
import { BurnRates } from './burn_rate/burn_rates';
import { BurnRatePanel } from './burn_rate_panel/burn_rate_panel';
import { EventsChartPanel } from './events_chart_panel';
import { HistoricalDataCharts } from './historical_data_charts';
import { SLODetailsHistory } from './history/slo_details_history';
Expand Down Expand Up @@ -68,7 +68,7 @@ export function SloDetails({ slo, isAutoRefreshing, selectedTabId }: Props) {
<Overview slo={slo} />

<EuiFlexGroup direction="column" gutterSize="l">
<BurnRates slo={slo} isAutoRefreshing={isAutoRefreshing} />
<BurnRatePanel slo={slo} isAutoRefreshing={isAutoRefreshing} />

<HistoricalDataCharts
slo={slo}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useFetchBurnRateWindows = (slo: SLOWithSummaryResponse) => {
useEffect(() => {
if (!isLoading && rules && rules[sloId]) {
setBurnRateWindows(
rules[sloId][0].params?.windows?.map((window) => ({
rules[sloId][0]?.params?.windows?.map((window) => ({
name: window.actionGroup,
threshold: window.burnRateThreshold,
longWindow: window.longWindow,
Expand Down

0 comments on commit 84c47d4

Please sign in to comment.