-
+
{item ?
: 'Artwork not found...'}
-
+
{item && }
- {item &&
}
+ {item &&
}
diff --git a/src/components/artworks/single/EditArtworkForm.tsx b/src/components/artworks/single/EditArtworkForm.tsx
index c135e11..1f1db5d 100644
--- a/src/components/artworks/single/EditArtworkForm.tsx
+++ b/src/components/artworks/single/EditArtworkForm.tsx
@@ -2,23 +2,19 @@
import { updateArtwork } from "@/actions/artworks/updateArtwork";
import { Button } from "@/components/ui/button";
-import { Calendar } from "@/components/ui/calendar";
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import MultipleSelector from "@/components/ui/multiselect";
-import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
import { Switch } from "@/components/ui/switch";
import { Textarea } from "@/components/ui/textarea";
-import { ArtTag } from "@/generated/prisma/client";
-import { cn } from "@/lib/utils";
+import type { ArtTag } from "@/generated/prisma/client";
import { artworkSchema } from "@/schemas/artworks/imageSchema";
-import { ArtworkWithRelations, CategoryWithTags } from "@/types/Artwork";
+import type { ArtworkWithRelations, CategoryWithTags } from "@/types/Artwork";
import { zodResolver } from "@hookform/resolvers/zod";
-import { format } from "date-fns";
import { useRouter } from "next/navigation";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
-import { z } from "zod/v4";
+import type { z } from "zod/v4";
export default function EditArtworkForm({ artwork, categories, tags }:
{
@@ -82,7 +78,7 @@ export default function EditArtworkForm({ artwork, categories, tags }:
Alt Text
-
+
@@ -155,7 +151,7 @@ export default function EditArtworkForm({ artwork, categories, tags }:
)}
/>
- {/* Date */}
+ {/* Date
)}
- />
+ /> */}
{/* Select */}
{/* Boolean */}
-
(
-
-
- Needs some work
-
-
-
-
-
-
- )}
- />
)}
/>
- (
-
-
- Publish
- Will this image be published.
-
-
-
-
-
- )}
- />
)}
/>
- {/* Read only */}
- {/* (
-
- Image Key
-
-
+
+
+ Needs some work
+
+
+
+
+
)}
/>
(
-
- Original file
-
-
+
+
+ Publish
+ Will this image be published.
+
+
+
+
)}
/>
- (
-
- Filetype
-
-
-
- )}
- />
- (
-
- FileSize
-
-
-
- )}
- /> */}
+