chore: re-order backend file structure

This commit is contained in:
Nicolas Meienberger
2025-08-31 17:32:11 +02:00
parent a16fc37b44
commit 23f47bbb6b
28 changed files with 240 additions and 1129 deletions

View File

@@ -1,8 +1,8 @@
import { zodResolver } from "@hookform/resolvers/zod";
import { useMutation } from "@tanstack/react-query";
import { Plus } from "lucide-react";
import { useForm } from "react-hook-form";
import { z } from "zod";
import { useCreateVolume } from "~/hooks/useCreateVolume";
import { slugify } from "~/lib/utils";
import { Button } from "./ui/button";
import {
@@ -50,7 +50,7 @@ export const CreateVolumeDialog = ({ open, setOpen }: Props) => {
});
const nameValue = form.watch("name");
const createVolume = useCreateVolume();
const createVolume = useMutation({});
const onSubmit = (values: { name: string }) => {
createVolume.mutate(values, {