Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const S3Tabs = ({ s3 }: S3TabsProps) => {
{
href: 'objects',
label: t('objectsTab'),
count: s3.objects.length || 0,
},
!isLocaleZone && {
href: 'replication',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function SwiftLayout() {
return (
<>
<SwiftHeader swift={swift} />
<S3Tabs swift={swift} />
<S3Tabs />
<div className="space-y-2">
<Outlet context={swiftLayoutContext} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ import { useTranslation } from 'react-i18next';
import TabsMenu from '@/components/tabs-menu/TabsMenu.component';
import storages from '@/types/Storages';

interface SwiftTabsProps {
swift: storages.ContainerDetail;
}
const SwiftTabs = ({ swift }: SwiftTabsProps) => {
const SwiftTabs = () => {
const { t } = useTranslation('pci-object-storage/storages/header-tabs');

const tabs = [
{ href: '', label: t('dashboardTab'), end: true },
{
href: 'objects',
label: t('objectsTab'),
count: swift?.objects?.length || 0,
},
].filter((tab) => tab);

Expand Down
Loading