mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
update create bot form
This commit is contained in:
@@ -67,7 +67,16 @@ export default function FormField({
|
||||
},
|
||||
}
|
||||
: type === "username"
|
||||
? { required: "RequiredField" }
|
||||
? {
|
||||
validate: (value: string) =>
|
||||
value.length === 0
|
||||
? "RequiredField"
|
||||
: value.length < 2
|
||||
? "TooShort"
|
||||
: value.length > 32
|
||||
? "TooLong"
|
||||
: undefined,
|
||||
}
|
||||
: { required: "RequiredField" },
|
||||
)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user