From 62629790d82b6ce784528bac4bd1ae156a65a203 Mon Sep 17 00:00:00 2001 From: Gourav Date: Sat, 28 Sep 2024 19:36:04 +0530 Subject: [PATCH] temporary build fix --- components/ui/toaster.tsx | 19 +++++-------------- lib/actions/admin.actions.ts | 2 ++ next.config.mjs | 7 ++++++- 3 files changed, 13 insertions(+), 15 deletions(-) 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;