Skip to content

Scheduling infrastructure for absolutely everyone.

fix: create team form (#7896)

Udit Takkard5c3d9d967e4
diff --git a/apps/web/components/eventtype/EventTypeSingleLayout.tsx b/apps/web/components/eventtype/EventTypeSingleLayout.tsx
index ffeb9b4fa99..8518313bfb0 100644
--- a/apps/web/components/eventtype/EventTypeSingleLayout.tsx
+++ b/apps/web/components/eventtype/EventTypeSingleLayout.tsx
@@ -247,7 +247,7 @@ function EventTypeSingleLayout({
tooltip={t("embed")}
/>
<Button
- color="secondary"
+ color="destructive"
variant="icon"
StartIcon={FiTrash}
tooltip={t("delete")}
diff --git a/packages/features/ee/teams/components/CreateANewTeamForm.tsx b/packages/features/ee/teams/components/CreateANewTeamForm.tsx
index db00f905839..6ca3e2ebc87 100644
--- a/packages/features/ee/teams/components/CreateANewTeamForm.tsx
+++ b/packages/features/ee/teams/components/CreateANewTeamForm.tsx
@@ -75,6 +75,7 @@ export const CreateANewTeamForm = () => {
if (newTeamFormMethods.formState.touchedFields["slug"] === undefined) {
newTeamFormMethods.setValue("slug", slugify(e?.target.value));
}
+ createTeamMutation.reset();
}}
autoComplete="off"
/>
@@ -102,6 +103,7 @@ export const CreateANewTeamForm = () => {
newTeamFormMethods.setValue("slug", slugify(e?.target.value), {
shouldTouch: true,
});
+ createTeamMutation.reset();
}}
/>
)}
@@ -122,6 +124,7 @@ export const CreateANewTeamForm = () => {
buttonMsg={t("update")}
handleAvatarChange={(newAvatar: string) => {
newTeamFormMethods.setValue("logo", newAvatar);
+ createTeamMutation.reset();
}}
imageSrc={value}
/>
diff --git a/packages/ui/components/button/Button.tsx b/packages/ui/components/button/Button.tsx
index 570ccf3d382..91bae1fa30b 100644
--- a/packages/ui/components/button/Button.tsx
+++ b/packages/ui/components/button/Button.tsx
@@ -135,7 +135,7 @@ const buttonClasses = cva(
disabled: [false, undefined],
color: "destructive",
className:
- "border dark:text-white text-gray-900 hover:text-red-700 focus-visible:text-red-700 dark:hover:text-red-700 dark:focus-visible:text-red-700 hover:border-red-100 focus-visible:border-red-100 hover:bg-red-100 focus-visible:bg-red-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset focus-visible:ring-red-700",
+ "border border-gray-300 dark:text-white text-gray-900 hover:text-red-700 focus-visible:text-red-700 dark:hover:text-red-700 dark:focus-visible:text-red-700 focus-visible:border-red-100 hover:bg-red-100 focus-visible:bg-red-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset hover:border-red-100 focus-visible:ring-red-700",
}),
// https://github.com/joe-bell/cva/issues/95 created an issue about using !p-2 on the icon variants as i would expect this to take priority
{