feat: show page
This commit is contained in:
1 parent
abe1c795a1
commit
183c7231a1
26 files changed
+210
-176
No files matched your search
@@ -3,9 +3,11 @@ import mapMoviesSeriesResponseToShows from '../dto/Show';
|
||||
|
||||
export type TrendingQueryProps = {
|
||||
type: 'trending' | 'streaming' | 'theater';
|
||||
enabled?: boolean;
|
||||
};
|
||||
|
||||
const trendingQuery = ({ type }: TrendingQueryProps) => ({
|
||||
const trendingQuery = ({ type, enabled }: TrendingQueryProps) => ({
|
||||
enabled,
|
||||
queryKey: ['trending', `type-${type}`],
|
||||
queryFn: () => {
|
||||
const params: Record<string, string | number> = {};
|
||||
|
||||
Reference in new issue
Block a user