fix: persist team filter across tab switches (#22892)
* fix/persist team filter across tab switches * fix failing ts errors * tackled failing ts checks * fix prop type consistency * removed unecessary props * tackled in one file --------- Co-authored-by: Kartik Saini <41051387+kart1ka@users.noreply.github.com>
This commit is contained in:
@@ -96,10 +96,11 @@ function EventTypeSingleLayout({
|
||||
const [Shell] = useMemo(() => {
|
||||
return isPlatform ? [PlatformShell] : [WebShell];
|
||||
}, [isPlatform]);
|
||||
const teamId = eventType.team?.id;
|
||||
|
||||
return (
|
||||
<Shell
|
||||
backPath="/event-types"
|
||||
backPath={teamId ? `/event-types?teamId=${teamId}` : "/event-types"}
|
||||
title={`${eventType.title} | ${t("event_type")}`}
|
||||
heading={eventType.title}
|
||||
CTA={
|
||||
|
||||
Reference in New Issue
Block a user