diff --git a/components/ui/toaster.tsx b/components/ui/toaster.tsx index 9773020..5924661 100644 --- a/components/ui/toaster.tsx +++ b/components/ui/toaster.tsx @@ -1,14 +1,7 @@ -"use client" +'use client' -import { useToast } from "@/components/hooks/use-toast" -import { - Toast, - ToastClose, - ToastDescription, - ToastProvider, - ToastTitle, - ToastViewport, -} from "@/components/ui/toast" +import { useToast } from '@/hooks/use-toast' +import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from '@/components/ui/toast' export function Toaster() { const { toasts } = useToast() @@ -18,11 +11,9 @@ export function Toaster() { {toasts.map(function ({ id, title, description, action, ...props }) { return ( -
+
{title && {title}} - {description && ( - {description} - )} + {description && {description}}
{action} diff --git a/lib/actions/admin.actions.ts b/lib/actions/admin.actions.ts index 1547e85..66a16b6 100644 --- a/lib/actions/admin.actions.ts +++ b/lib/actions/admin.actions.ts @@ -7,6 +7,8 @@ import { errorlogger } from '@/utils/logger' import { createIngredient1, createInstruction1, extractRecifeInformation } from '@/db/dbFn/recipeFunction' import { postRecipeURL } from '@/api/recipe.api' +export const adminCustomQuery = () => {} + export const addNewRecipeToDatabase = async (formData: FormData) => { try { const [userid, categoryId, imgUrl, recipeSet] = await Promise.all([ diff --git a/next.config.mjs b/next.config.mjs index 4678774..4b6b655 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,9 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + reactStrictMode: true, + experimental: { + missingSuspenseWithCSRBailout: false, + }, +}; export default nextConfig;