File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments