fix: improve onboarding audio and mobile layout
This commit is contained in:
@@ -74,12 +74,12 @@ export default function LandingPage({ route }) {
|
||||
return selectedLanguage === 'en' ? videos.welcomeEn : videos.welcomeFr
|
||||
}, [phase, selectedLanguage])
|
||||
|
||||
const activeVideoClose =
|
||||
phase === FLOW_PHASE.JINGLE ? handleJingleClose : handleWelcomeVideoClose
|
||||
const activeVideoClose = phase === FLOW_PHASE.JINGLE ? handleJingleClose : handleWelcomeVideoClose
|
||||
const isJingle = phase === FLOW_PHASE.JINGLE
|
||||
const skipLabel = selectedLanguage === 'en' ? 'Skip video' : 'Passer la vidéo'
|
||||
const playLabel =
|
||||
selectedLanguage === 'en'
|
||||
const playLabel = isJingle
|
||||
? 'Activer le son / Enable sound'
|
||||
: selectedLanguage === 'en'
|
||||
? 'Play video with sound'
|
||||
: 'Lire la vidéo avec le son'
|
||||
|
||||
@@ -124,6 +124,7 @@ export default function LandingPage({ route }) {
|
||||
contentFit="contain"
|
||||
allowSkip={!isJingle}
|
||||
requireAudio={!isJingle}
|
||||
offerSoundActivation={isJingle}
|
||||
skipLabel={skipLabel}
|
||||
playLabel={playLabel}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user