Revert "undo commit"

This reverts commit 9103f67db5.
This commit is contained in:
daniel31x13
2024-11-03 03:27:52 -05:00
parent e37702aa14
commit dbd096ab76
176 changed files with 2362 additions and 9401 deletions
+4 -8
View File
@@ -35,9 +35,6 @@ export default function NewUserModal({ onClose }: Props) {
event.preventDefault();
if (!submitLoader) {
if (form.password.length < 8)
return toast.error(t("password_length_error"));
const checkFields = () => {
if (emailEnabled) {
return form.name !== "" && form.email !== "" && form.password !== "";
@@ -55,10 +52,9 @@ export default function NewUserModal({ onClose }: Props) {
onSuccess: () => {
onClose();
},
onSettled: () => {
setSubmitLoader(false);
},
});
setSubmitLoader(false);
} else {
toast.error(t("fill_all_fields_error"));
}
@@ -83,7 +79,7 @@ export default function NewUserModal({ onClose }: Props) {
/>
</div>
{emailEnabled && (
{emailEnabled ? (
<div>
<p className="mb-2">{t("email")}</p>
<TextInput
@@ -93,7 +89,7 @@ export default function NewUserModal({ onClose }: Props) {
value={form.email}
/>
</div>
)}
) : undefined}
<div>
<p className="mb-2">