feat(tenants): make tenant name a link to detail page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0bc81bbe40
commit
2813c6a1bf
|
|
@ -1,6 +1,7 @@
|
|||
'use client';
|
||||
|
||||
import { useState } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { apiClient } from '@/infrastructure/api/api-client';
|
||||
|
|
@ -267,7 +268,11 @@ export default function TenantsPage() {
|
|||
<>
|
||||
{/* Main row */}
|
||||
<tr key={tenant.id} className="hover:bg-muted/30">
|
||||
<td className="px-4 py-3 font-medium">{tenant.name}</td>
|
||||
<td className="px-4 py-3 font-medium">
|
||||
<Link href={`/tenants/${tenant.id}`} className="hover:underline text-primary">
|
||||
{tenant.name}
|
||||
</Link>
|
||||
</td>
|
||||
<td className="px-4 py-3 text-muted-foreground">{tenant.slug}</td>
|
||||
<td className="px-4 py-3">
|
||||
{editingId === tenant.id ? (
|
||||
|
|
|
|||
Loading…
Reference in New Issue