mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-27 00:13:08 +00:00
Fixes for build (#124)
This commit is contained in:
@@ -78,6 +78,8 @@ export default function CreateSiteForm({
|
||||
privateKey: string;
|
||||
} | null>(null);
|
||||
|
||||
const t = useTranslations();
|
||||
|
||||
const createSiteFormSchema = z.object({
|
||||
name: z
|
||||
.string()
|
||||
@@ -115,8 +117,6 @@ export default function CreateSiteForm({
|
||||
const nameField = form.watch("name");
|
||||
const methodField = form.watch("method");
|
||||
|
||||
const t = useTranslations();
|
||||
|
||||
useEffect(() => {
|
||||
const nameIsValid = nameField?.length >= 2 && nameField?.length <= 30;
|
||||
const isFormValid = methodField === "local" || isChecked;
|
||||
|
||||
Reference in New Issue
Block a user