Skip to content

Commit

Permalink
AudioPlayerWithConsent
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Oct 22, 2024
1 parent 8d16692 commit f585b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Props = {
*
* (No visual story exists)
*/
export const AudioPlayerWrapper = ({ duration, src, mediaId }: Props) => {
export const AudioPlayerWithConsent = ({ duration, src, mediaId }: Props) => {
const [finalSrc, setFinalSrc] = useState<string>(src);

useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions dotcom-rendering/src/layouts/AudioLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ArticleContainer } from '../components/ArticleContainer';
import { ArticleHeadline } from '../components/ArticleHeadline';
import { ArticleMeta } from '../components/ArticleMeta.web';
import { ArticleTitle } from '../components/ArticleTitle';
import { AudioPlayerWrapper } from '../components/AudioPlayerWrapper.importable';
import { AudioPlayerWithConsent } from '../components/AudioPlayerWithConsent.importable';
import { Border } from '../components/Border';
import { Carousel } from '../components/Carousel.importable';
import { DecideLines } from '../components/DecideLines';
Expand Down Expand Up @@ -322,7 +322,7 @@ export const AudioLayout = (props: WebProps) => {
priority="critical"
defer={{ until: 'visible' }}
>
<AudioPlayerWrapper
<AudioPlayerWithConsent
/* contentIsNotSensitive={true} */
/* isAcastEnabled={true} */
/* readerCanBeShownAds={true} */
Expand Down

0 comments on commit f585b25

Please sign in to comment.