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:
Pallav
2025-08-06 22:14:31 +05:30
committed by GitHub
co-authored by Kartik Saini
parent b5a26bc227
commit 08a57f32c5
@@ -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={