feat(show-type): global movie/series toggle, type-aware pages and search, ?type=tv in URL
This commit is contained in:
1 parent
5b41dbca10
commit
0824090c6d
21 files changed
+415
-174
No files matched your search
@@ -7,6 +7,7 @@ export type AnalyticsEvents = {
|
||||
person_viewed: { personId: string; personName: string };
|
||||
list_loaded_more: { list: ListName; page: number };
|
||||
random_shuffled: { index: number; showTitle: string };
|
||||
random_type_changed: { type: Show['type'] };
|
||||
|
||||
search_performed: { query: string; showType: Show['type']; results: number };
|
||||
gallery_tab_changed: { tab: string };
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export const parseShowType = (value: string | string[] | null | undefined): Show['type'] =>
|
||||
value === 'tv' ? 'tv' : 'movie';
|
||||
Reference in new issue
Block a user