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
177
+
if(
178
+
target.tagName==="IFRAME"||
179
+
target.closest(".podcast-embed")||
180
+
target.closest(".action-btn")||// Don't navigate if clicking buttons
181
+
target.closest(".card-actions")||// Don't navigate if clicking action area
182
+
target.classList.contains("action-btn")||
183
+
target.classList.contains("favorite")||
184
+
target.classList.contains("share")
185
+
){
142
186
return;
143
187
}
144
-
history.push('/podcasts/details',{ podcast });
145
-
};
146
188
147
-
React.useEffect(()=>{
148
-
setCurrentPage(1);
149
-
},[searchTerm,selectedFilter]);
189
+
history.push("/podcasts/details",{ podcast });
190
+
};
150
191
151
192
return(
152
193
<Layout>
@@ -164,7 +205,7 @@ export default function Podcasts(): ReactElement {
164
205
<pclassName="podcast-hero-description">
165
206
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
207
</p>
167
-
208
+
168
209
{/* Stats */}
169
210
<divclassName="podcast-stats">
170
211
<divclassName="stat-item">
@@ -247,20 +288,48 @@ export default function Podcasts(): ReactElement {
0 commit comments