diff --git a/app/(root)/layout.tsx b/app/(root)/layout.tsx index f80e56b..33e462d 100644 --- a/app/(root)/layout.tsx +++ b/app/(root)/layout.tsx @@ -6,6 +6,7 @@ import { SpeedInsights } from "@vercel/speed-insights/next" import { NextUIProvider } from '@nextui-org/react'; import { ThemeProvider as NextThemesProvider } from "next-themes"; import Frame from '@mitech/shared-components/component/frame-with-sidebar-and-navbar'; +import { NotificationProvider } from '@/components/ui/NotificationContext'; export const metadata = { title: 'Welcome to Mitech Recruitment', description: @@ -26,7 +27,7 @@ export default async function RootLayout({
- {children} + {children}
diff --git a/components/ui/ads-table.tsx b/components/ui/ads-table.tsx index 7ef8c9f..6baefdb 100644 --- a/components/ui/ads-table.tsx +++ b/components/ui/ads-table.tsx @@ -130,7 +130,7 @@ export default function AdsTable({
- {ad.id && } + {ad.status !== "published" && ad.id && }
@@ -145,7 +145,7 @@ export default function AdsTable({
- {ad.id &&} + {ad.status !== "published" && ad.id &&}
diff --git a/components/ui/button.tsx b/components/ui/button.tsx index 1260b01..667aa31 100644 --- a/components/ui/button.tsx +++ b/components/ui/button.tsx @@ -2,7 +2,7 @@ import React from 'react'; import Link from 'next/link'; -import { PlusIcon, PencilIcon, StopIcon, ArrowUpOnSquareIcon, EyeIcon, TrashIcon } from '@heroicons/react/24/outline'; +import { PlusIcon, PencilIcon, StopIcon, EyeIcon, TrashIcon, ArrowUpOnSquareStackIcon } from '@heroicons/react/24/outline'; import {Tooltip, Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, Button, useDisclosure} from "@nextui-org/react"; import { redirect, useRouter } from 'next/navigation'; import { deleteAd, publishAd, unpublishAd } from '@/lib/api'; @@ -110,7 +110,7 @@ export function PostAd({ id }: { id: string }) {