feat(notifications): add delete notification modal

This commit is contained in:
Mauricio Siu
2024-07-09 01:16:06 -06:00
parent 680811357b
commit 342ff4b589
3 changed files with 16 additions and 15 deletions

View File

@@ -8,6 +8,7 @@ import {
import { api } from "@/utils/api";
import { BellRing } from "lucide-react";
import { AddNotification } from "./add-notification";
import { DeleteNotification } from "./delete-notification";
export const ShowNotifications = () => {
const { data } = api.notification.all.useQuery();
@@ -41,14 +42,14 @@ export const ShowNotifications = () => {
<span className="text-sm text-muted-foreground">
{index + 1}. {destination.name}
</span>
{/* <div className="flex flex-row gap-1">
<UpdateDestination
<div className="flex flex-row gap-1">
{/* <UpdateDestination
destinationId={destination.destinationId}
/> */}
<DeleteNotification
notificationId={destination.notificationId}
/>
<DeleteDestination
destinationId={destination.destinationId}
/>
</div> */}
</div>
</div>
))}
<div>