From 9d1a0637f40f5410dcffcf9c02aaf1268987b1dc Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Fri, 4 Nov 2022 21:24:45 +0530 Subject: [PATCH] [CAL-153] Wrong redirect when clicking user or teams avatar in event types (#5348) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: gitstart Co-authored-by: gitstart Co-authored-by: Nitesh Singh Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com> Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com> Co-authored-by: Matheus Benini Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: Rafael Co-authored-by: Grace Nshokano Co-authored-by: MuriloAmarals Co-authored-by: gitstart Co-authored-by: Nitesh Singh Co-authored-by: Matheus Muniz <87545749+matheusmuniz03@users.noreply.github.com> Co-authored-by: Rafael Toledo <87545086+Toledodev@users.noreply.github.com> Co-authored-by: Matheus Benini Ferreira <88898100+MatheusBeniniF@users.noreply.github.com> Co-authored-by: Murilo Amaral <87545137+MuriloAmarals@users.noreply.github.com> Co-authored-by: Matheus Benini Co-authored-by: Rubens Rafael <70234898+RubensRafael@users.noreply.github.com> Co-authored-by: Thiago Nascimbeni Co-authored-by: gitstart Co-authored-by: Rafael Co-authored-by: Grace Nshokano Co-authored-by: MuriloAmarals Co-authored-by: Matheus Muniz Co-authored-by: JĂșlio Piubello da Silva Cabral --- apps/web/pages/event-types/index.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/web/pages/event-types/index.tsx b/apps/web/pages/event-types/index.tsx index 9f52cc118a..e4df2b5a74 100644 --- a/apps/web/pages/event-types/index.tsx +++ b/apps/web/pages/event-types/index.tsx @@ -38,6 +38,7 @@ type EventTypeGroupProfile = EventTypeGroups[number]["profile"]; interface EventTypeListHeadingProps { profile: EventTypeGroupProfile; membershipCount: number; + teamId?: number | null; } type EventTypeGroup = inferQueryOutput<"viewer.eventTypes">["eventTypeGroups"][number]; @@ -501,10 +502,14 @@ export const EventTypeList = ({ group, groupIndex, readOnly, types }: EventTypeL ); }; -const EventTypeListHeading = ({ profile, membershipCount }: EventTypeListHeadingProps): JSX.Element => { +const EventTypeListHeading = ({ + profile, + membershipCount, + teamId, +}: EventTypeListHeadingProps): JSX.Element => { return (
- +
- + {profile?.name || ""} {membershipCount && ( @@ -587,6 +592,7 @@ const EventTypesPage = () => { )}