A: Add AddressList tab to CompanyDetail.tsx

This commit is contained in:
2026-07-04 01:42:11 +00:00
parent d0375a990e
commit afb9e86c50
+10 -1
View File
@@ -10,6 +10,7 @@ import { EmptyState } from '@/components/ui/EmptyState';
import { Skeleton } from '@/components/ui/Skeleton';
import { Avatar } from '@/components/ui/Avatar';
import { TagPicker } from '@/components/tags/TagPicker';
import { AddressList } from '@/components/AddressList';
export function CompanyDetailPage() {
const { id } = useParams<{ id: string }>();
@@ -104,6 +105,14 @@ export function CompanyDetailPage() {
),
};
const addressesTab: TabItem = {
key: 'addresses',
label: t('address.title'),
content: (
<AddressList entityType="company" entityId={company.id} />
),
};
const tagsTab: TabItem = {
key: 'tags',
label: t('tags.title'),
@@ -137,7 +146,7 @@ export function CompanyDetailPage() {
{t('common.edit')}
</Button>
</div>
<Tabs tabs={[overviewTab, contactsTab, tagsTab, filesTab, activityTab]} defaultKey="overview" />
<Tabs tabs={[overviewTab, contactsTab, addressesTab, tagsTab, filesTab, activityTab]} defaultKey="overview" />
</div>
);
}