feat: hide Matchability tab on Inserate detail drawer

PropertyDetailView gets hideTabs prop — MyListings passes ['Matchability']
since the Suchabo chip already covers the match/contact use case inline.
Tab content now keys by name not index, so removal doesn't shift panels.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Sutter
2026-05-24 23:13:50 +02:00
parent d2af8664f4
commit e597e81ff5
2 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ export default function MyListings() {
slotProps={{ paper: { sx: { width: { xs: '100%', sm: 560 } } } }}
>
{detailId && (
<PropertyDetailView propertyId={detailId} onClose={() => setDetailId(null)} />
<PropertyDetailView propertyId={detailId} onClose={() => setDetailId(null)} hideTabs={['Matchability']} />
)}
</Drawer>