Skip to content

Commit

Permalink
fix: create team form (#7896)
Browse files Browse the repository at this point in the history
* fix: create team form

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>

* fix: change hover border

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>

---------

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
  • Loading branch information
Udit-takkar and PeerRich authored Mar 27, 2023
1 parent aa0e9e6 commit d5c3d9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/components/eventtype/EventTypeSingleLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function EventTypeSingleLayout({
tooltip={t("embed")}
/>
<Button
color="secondary"
color="destructive"
variant="icon"
StartIcon={FiTrash}
tooltip={t("delete")}
Expand Down
3 changes: 3 additions & 0 deletions packages/features/ee/teams/components/CreateANewTeamForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const CreateANewTeamForm = () => {
if (newTeamFormMethods.formState.touchedFields["slug"] === undefined) {
newTeamFormMethods.setValue("slug", slugify(e?.target.value));
}
createTeamMutation.reset();
}}
autoComplete="off"
/>
Expand Down Expand Up @@ -102,6 +103,7 @@ export const CreateANewTeamForm = () => {
newTeamFormMethods.setValue("slug", slugify(e?.target.value), {
shouldTouch: true,
});
createTeamMutation.reset();
}}
/>
)}
Expand All @@ -122,6 +124,7 @@ export const CreateANewTeamForm = () => {
buttonMsg={t("update")}
handleAvatarChange={(newAvatar: string) => {
newTeamFormMethods.setValue("logo", newAvatar);
createTeamMutation.reset();
}}
imageSrc={value}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

1 comment on commit d5c3d9d

@vercel
Copy link

@vercel vercel bot commented on d5c3d9d Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./apps/storybook

cal-com-storybook.vercel.app
timelessui.com
ui-git-main-cal.vercel.app
www.timelessui.com
ui-cal.vercel.app
ui.cal.com

Please sign in to comment.