Skip to content

Commit

Permalink
temporary build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GouravNG committed Sep 28, 2024
1 parent 001c63f commit 6262979
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
19 changes: 5 additions & 14 deletions components/ui/toaster.tsx
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -18,11 +11,9 @@ export function Toaster() {
{toasts.map(function ({ id, title, description, action, ...props }) {
return (
<Toast key={id} {...props}>
<div className="grid gap-1">
<div className='grid gap-1'>
{title && <ToastTitle>{title}</ToastTitle>}
{description && (
<ToastDescription>{description}</ToastDescription>
)}
{description && <ToastDescription>{description}</ToastDescription>}
</div>
{action}
<ToastClose />
Expand Down
2 changes: 2 additions & 0 deletions lib/actions/admin.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
7 changes: 6 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
reactStrictMode: true,
experimental: {
missingSuspenseWithCSRBailout: false,
},
};

export default nextConfig;

0 comments on commit 6262979

Please sign in to comment.