feat: big refactor for CustomInput component

This commit is contained in:
Pablo Lara
2024-09-24 08:40:48 +02:00
parent fa77455c3e
commit 94eba806e3
5 changed files with 17 additions and 85 deletions
+2 -10
View File
@@ -8,7 +8,7 @@ import * as z from "zod";
import { updateProvider } from "@/actions";
import { useToast } from "@/components/ui";
import { CustomInputNew } from "@/components/ui/custom";
import { CustomInput } from "@/components/ui/custom";
import { Form } from "@/components/ui/form";
import { editProviderFormSchema } from "@/types";
@@ -70,15 +70,7 @@ export const EditForm = ({
<input type="hidden" name="providerId" value={providerId} />
<div>Current alias: {providerAlias}</div>
{/* <CustomInput
control={form.control}
name="alias"
type="text"
label="Alias"
placeholder={providerAlias}
/> */}
<CustomInputNew
<CustomInput
control={form.control}
name="alias"
type="text"