fixed team URL in settings (#5031)
This commit is contained in:
1 parent
3b9653df0e
commit
cc7e4b3b33
2 files changed
+3
-2
No files matched your search
@@ -60,7 +60,7 @@ const CreateANewTeamForm = (props: { nextStep: () => void; setTeamId: (teamId: n
|
||||
className="mt-2"
|
||||
name="slug"
|
||||
label={t("team_url")}
|
||||
addOnLeading={`${WEBAPP_URL}/`}
|
||||
addOnLeading={`${WEBAPP_URL}/team/`}
|
||||
value={value}
|
||||
onChange={(e) => {
|
||||
formMethods.setValue("slug", e?.target.value);
|
||||
|
||||
@@ -4,6 +4,7 @@ import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import { Controller, useForm } from "react-hook-form";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import { getPlaceholderAvatar } from "@calcom/lib/getPlaceholderAvatar";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import objectKeys from "@calcom/lib/objectKeys";
|
||||
@@ -173,7 +174,7 @@ const ProfileView = () => {
|
||||
name="url"
|
||||
label={t("team_url")}
|
||||
value={value}
|
||||
addOnLeading="https://cal.com/"
|
||||
addOnLeading={`${WEBAPP_URL}/team/`}
|
||||
onChange={(e) => {
|
||||
form.setValue("url", e?.target.value);
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user