lucide delete icon
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m33s

This commit is contained in:
ChrQR 2024-05-28 23:01:43 +02:00
parent 0bab29653a
commit 8a3d62a43d

View File

@ -1,3 +1,5 @@
import { Delete, LucideDelete } from "lucide-react";
import Image from "next/image";
import { deleteCountry } from "~/server/actions/deleteCountry"; import { deleteCountry } from "~/server/actions/deleteCountry";
import { db } from "~/server/db"; import { db } from "~/server/db";
@ -10,7 +12,9 @@ export default async function AllCountries() {
<div className="flex gap-1"> <div className="flex gap-1">
<p key={country.id}>{country.name}</p> <p key={country.id}>{country.name}</p>
<form action={deleteCountry.bind(null, country.id)}> <form action={deleteCountry.bind(null, country.id)}>
<button></button> <button>
<Delete />
</button>
</form> </form>
</div> </div>
))} ))}