Skip to content

Commit d6907a0

Browse files
committed
Fixes quotas page
1 parent a6454a9 commit d6907a0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

frontend/src/components/pages/quotas/quotas-list.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Alert, AlertIcon, Button, DataTable, Result, Skeleton } from '@redpanda
1414
import { useQuery } from '@tanstack/react-query';
1515
import { SkipIcon } from 'components/icons';
1616
import { config } from 'config';
17-
import { useMemo } from 'react';
17+
import { useEffect, useMemo } from 'react';
1818

1919
import {
2020
Quota_EntityType,
@@ -23,6 +23,7 @@ import {
2323
} from '../../../protogen/redpanda/api/dataplane/v1/quota_pb';
2424
import { listQuotas } from '../../../protogen/redpanda/api/dataplane/v1/quota-QuotaService_connectquery';
2525
import type { QuotaResponse, QuotaResponseSetting } from '../../../state/rest-interfaces';
26+
import { uiState } from '../../../state/ui-state';
2627
import { InfoText } from '../../../utils/tsx-utils';
2728
import { prettyBytes, prettyNumber } from '../../../utils/utils';
2829
import PageContent from '../../misc/page-content';
@@ -98,6 +99,12 @@ const useQuotasQuery = () => {
9899
const QuotasList = () => {
99100
const { data, error, isLoading } = useQuotasQuery();
100101

102+
// Set page title and breadcrumbs
103+
useEffect(() => {
104+
uiState.pageBreadcrumbs = [{ title: 'Quotas', linkTo: '/quotas' }];
105+
uiState.pageTitle = 'Quotas';
106+
}, []);
107+
101108
const quotasData = useMemo(() => {
102109
if (!data?.items) {
103110
return [];

0 commit comments

Comments
 (0)