{serverErrorMessage && (
)}
{isBillingEnabled && isAdmin && (
(
<>
{
if ([BillingPeriod.ANNUALLY, BillingPeriod.MONTHLY].includes(e)) {
onChange(e);
}
}}
options={[
{
value: "MONTHLY",
label: "Monthly",
},
{
value: "ANNUALLY",
label: "Annually",
},
]}
/>
>
)}
/>
)}
(
{
const email = e?.target.value;
newOrganizationFormMethods.setValue("orgOwnerEmail", email.trim());
if (newOrganizationFormMethods.getValues("slug") === "") {
const slug = deriveSlugFromEmail(email);
newOrganizationFormMethods.setValue("slug", slug);
}
const name = deriveOrgNameFromEmail(email);
newOrganizationFormMethods.setValue("name", name);
}}
autoComplete="off"
/>
)}
/>