feat: add link button to view service details in IncrociTable
This commit is contained in:
parent
d7bd1656c2
commit
a03326f036
1 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { format } from "date-fns";
|
import { format } from "date-fns";
|
||||||
import { Waypoints } from "lucide-react";
|
import { ArrowRight, Waypoints } from "lucide-react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Button, type ButtonProps } from "~/components/ui/button";
|
import { Button, type ButtonProps } from "~/components/ui/button";
|
||||||
import {
|
import {
|
||||||
|
|
@ -68,6 +68,7 @@ const IncrociTable = ({ annuncioId }: { annuncioId: AnnunciId }) => {
|
||||||
<TableHead>Utente</TableHead>
|
<TableHead>Utente</TableHead>
|
||||||
<TableHead>Data</TableHead>
|
<TableHead>Data</TableHead>
|
||||||
<TableHead>Note</TableHead>
|
<TableHead>Note</TableHead>
|
||||||
|
<TableHead>Servizio</TableHead>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
|
|
@ -108,6 +109,16 @@ const IncrociTable = ({ annuncioId }: { annuncioId: AnnunciId }) => {
|
||||||
<TableCell className="whitespace-pre-wrap">
|
<TableCell className="whitespace-pre-wrap">
|
||||||
{incrocio.note}
|
{incrocio.note}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Link
|
||||||
|
href={`/area-riservata/admin/user-view/servizio/${incrocio.user_id}/${incrocio.servizio_id}`}
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<Button variant="outline">
|
||||||
|
<ArrowRight />
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue