Skip to content

Commit a872569

Browse files
Restore header.css and fix handleShare call in podcasts/details.tsx
1 parent 92a2e0c commit a872569

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/components/header/header.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ html.theme-dark .chh__header-content p {
133133
z-index: 1;
134134
}
135135

136-
.chh__header-content__input button > .chh__header-content__input--link {
137-
display: flex;
138-
justify-content: center;
139-
}
140-
141136
.chh__header-content__input button::after {
142137
content: "";
143138
position: absolute;

src/pages/podcasts/details.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function PodcastDetails(): ReactElement {
147147
history.goBack();
148148
};
149149

150-
const handleShare = async () => {
150+
const handleShare = async (podcast?: PodcastData) => {
151151
if (navigator.share) {
152152
try {
153153
await navigator.share({
@@ -195,7 +195,7 @@ export default function PodcastDetails(): ReactElement {
195195
<div className="nav-actions">
196196
<button
197197
className="nav-action-button"
198-
onClick={handleShare}
198+
onClick={() => handleShare(podcast)}
199199
title="Share"
200200
>
201201
<span className="action-icon">🔗</span>
@@ -278,7 +278,7 @@ export default function PodcastDetails(): ReactElement {
278278
</span>
279279
</div>
280280
<div className="embed-actions">
281-
<button className="embed-action" onClick={handleShare}>
281+
<button className="embed-action" onClick={() => handleShare(podcast)}>
282282
<span className="action-icon">📤</span>
283283
Share
284284
</button>

0 commit comments

Comments
 (0)