setIsModalOpen(false)}
okText={t("common.change")}
onOk={async () => {
try {
await reqUpdateSubdomain(form.getFieldValue("subdomain"));
success(
t(
"organizationSettings.subdomainCard.modalChangeSubdomain.messageSubdomainSuccessfullyUpdated"
)
);
info(
t(
"organizationSettings.subdomainCard.modalChangeSubdomain.messageRedirect"
)
);
/*
window.location.href = `https://${form.getFieldValue(
"subdomain"
)}.${window.location.hostname.split(".").slice(1).join(".")}`; */
} catch (error) {
console.error(error);
}
}}
>
{t("organizationSettings.subdomainCard.modalChangeSubdomain.message")}