You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Prevent navigation if clicking on buttons or action area
175
+
if(
176
+
target.tagName==="IFRAME"||
177
+
target.closest(".podcast-embed")||
178
+
target.closest(".action-btn")||// Don't navigate if clicking buttons
179
+
target.closest(".card-actions")||// Don't navigate if clicking action area
180
+
target.classList.contains("action-btn")||
181
+
target.classList.contains("favorite")||
182
+
target.classList.contains("share")
183
+
){
142
184
return;
143
185
}
144
-
history.push('/podcasts/details',{ podcast });
145
-
};
146
186
147
-
React.useEffect(()=>{
148
-
setCurrentPage(1);
149
-
},[searchTerm,selectedFilter]);
187
+
history.push("/podcasts/details",{ podcast });
188
+
};
150
189
151
190
return(
152
191
<Layout>
@@ -164,7 +203,7 @@ export default function Podcasts(): ReactElement {
164
203
<pclassName="podcast-hero-description">
165
204
Stream the best podcasts from your favorite stations. Dive into episodes that inspire, educate, and entertain from leading voices in tech, business, and beyond.
166
205
</p>
167
-
206
+
168
207
{/* Stats */}
169
208
<divclassName="podcast-stats">
170
209
<divclassName="stat-item">
@@ -247,20 +286,47 @@ export default function Podcasts(): ReactElement {
0 commit comments