diff --git a/apps/client/app/components/create-volume-dialog.tsx b/apps/client/app/components/create-volume-dialog.tsx index 70ecf6e..42fb052 100644 --- a/apps/client/app/components/create-volume-dialog.tsx +++ b/apps/client/app/components/create-volume-dialog.tsx @@ -50,9 +50,9 @@ export const CreateVolumeDialog = ({ open, setOpen }: Props) => { Create volume - Enter a name for the new volume { diff --git a/apps/client/app/components/create-volume-form.tsx b/apps/client/app/components/create-volume-form.tsx index aaa9d04..dc8da1a 100644 --- a/apps/client/app/components/create-volume-form.tsx +++ b/apps/client/app/components/create-volume-form.tsx @@ -6,7 +6,7 @@ import { CheckCircle, Loader2, XCircle } from "lucide-react"; import { useEffect, useState } from "react"; import { useForm } from "react-hook-form"; import { testConnectionMutation } from "~/api-client/@tanstack/react-query.gen"; -import { slugify } from "~/lib/utils"; +import { cn, slugify } from "~/lib/utils"; import { Button } from "./ui/button"; import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "./ui/form"; import { Input } from "./ui/input"; @@ -24,6 +24,7 @@ type Props = { initialValues?: Partial; formId?: string; loading?: boolean; + className?: string; }; const defaultValuesForType = { @@ -33,7 +34,7 @@ const defaultValuesForType = { webdav: { backend: "webdav" as const, port: 80, ssl: false }, }; -export const CreateVolumeForm = ({ onSubmit, mode = "create", initialValues, formId, loading }: Props) => { +export const CreateVolumeForm = ({ onSubmit, mode = "create", initialValues, formId, loading, className }: Props) => { const form = useForm({ resolver: arktypeResolver(formSchema), defaultValues: initialValues, @@ -83,7 +84,7 @@ export const CreateVolumeForm = ({ onSubmit, mode = "create", initialValues, for return (
- +
-
+
diff --git a/apps/client/app/routes/home.tsx b/apps/client/app/routes/home.tsx index 84f990a..6a169c1 100644 --- a/apps/client/app/routes/home.tsx +++ b/apps/client/app/routes/home.tsx @@ -125,7 +125,7 @@ export default function Home({ loaderData }: Route.ComponentProps) { - + {volume.path}