chartManD's picture
back y frond separados
b2b9848
raw
history blame contribute delete
201 Bytes
import { redirect } from "react-router-dom";
import { deleteContact } from "../contacts";
export async function action({ params }) {
await deleteContact(params.contactId);
return redirect("/");
}