Skip to content

Commit 8f13dd6

Browse files
committed
fix: rename components
1 parent 125ae89 commit 8f13dd6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesContent.tsx renamed to src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ import {TOP_QUERIES_TABLE_SETTINGS, useRunningQueriesSort} from './utils';
2727

2828
const b = cn('kv-top-queries');
2929

30-
interface RunningQueriesContentProps {
30+
interface RunningQueriesDataProps {
3131
tenantName: string;
3232
renderQueryModeControl: () => React.ReactNode;
3333
onRowClick: (query: string) => void;
3434
handleTextSearchUpdate: (text: string) => void;
3535
}
3636

37-
export const RunningQueriesContent = ({
37+
export const RunningQueriesData = ({
3838
tenantName,
3939
renderQueryModeControl,
4040
onRowClick,
4141
handleTextSearchUpdate,
42-
}: RunningQueriesContentProps) => {
42+
}: RunningQueriesDataProps) => {
4343
const [autoRefreshInterval] = useAutoRefreshInterval();
4444
const filters = useTypedSelector((state) => state.executeTopQueries);
4545

src/containers/Tenant/Diagnostics/TopQueries/TopQueries.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import {useTypedDispatch} from '../../../../utils/hooks';
2020
import {useChangeInputWithConfirmation} from '../../../../utils/hooks/withConfirmation/useChangeInputWithConfirmation';
2121
import {TenantTabsGroups, getTenantPath} from '../../TenantPages';
2222

23-
import {RunningQueriesContent} from './RunningQueriesContent';
24-
import {TopQueriesContent} from './TopQueriesContent';
23+
import {RunningQueriesData} from './RunningQueriesData';
24+
import {TopQueriesData} from './TopQueriesData';
2525
import {TimeFrameIds} from './constants';
2626
import i18n from './i18n';
2727

@@ -105,7 +105,7 @@ export const TopQueries = ({tenantName}: TopQueriesProps) => {
105105
}, [queryMode, setQueryMode]);
106106

107107
return isTopQueries ? (
108-
<TopQueriesContent
108+
<TopQueriesData
109109
tenantName={tenantName}
110110
timeFrame={timeFrame}
111111
renderQueryModeControl={renderQueryModeControl}
@@ -115,7 +115,7 @@ export const TopQueries = ({tenantName}: TopQueriesProps) => {
115115
handleTextSearchUpdate={handleTextSearchUpdate}
116116
/>
117117
) : (
118-
<RunningQueriesContent
118+
<RunningQueriesData
119119
tenantName={tenantName}
120120
renderQueryModeControl={renderQueryModeControl}
121121
onRowClick={onRowClick}

src/containers/Tenant/Diagnostics/TopQueries/TopQueriesContent.tsx renamed to src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {TOP_QUERIES_TABLE_SETTINGS, useTopQueriesSort} from './utils';
3131

3232
const b = cn('kv-top-queries');
3333

34-
interface TopQueriesContentProps {
34+
interface TopQueriesDataProps {
3535
tenantName: string;
3636
timeFrame: TimeFrame;
3737
renderQueryModeControl: () => React.ReactNode;
@@ -41,15 +41,15 @@ interface TopQueriesContentProps {
4141
handleTextSearchUpdate: (text: string) => void;
4242
}
4343

44-
export const TopQueriesContent = ({
44+
export const TopQueriesData = ({
4545
tenantName,
4646
timeFrame,
4747
renderQueryModeControl,
4848
onRowClick,
4949
handleTimeFrameChange,
5050
handleDateRangeChange,
5151
handleTextSearchUpdate,
52-
}: TopQueriesContentProps) => {
52+
}: TopQueriesDataProps) => {
5353
const [autoRefreshInterval] = useAutoRefreshInterval();
5454
const filters = useTypedSelector((state) => state.executeTopQueries);
5555

0 commit comments

Comments
 (0)