feat: remove subscription modale
This commit is contained in:
@@ -5,7 +5,7 @@ import { Portal } from '@gorhom/portal'
|
||||
import FullscreenIntroVideo from './FullscreenIntroVideo'
|
||||
import { useUser } from '../providers/UserDataProvider'
|
||||
import { SplashAnimationContext } from '../providers/SplashAnimationProvider'
|
||||
import { musiclandShareUrl } from '../data'
|
||||
import { musiclandShareHeading, musiclandShareUrl } from '../data'
|
||||
|
||||
const BLOCKING_TIMEOUT_MS = 5000
|
||||
|
||||
@@ -51,7 +51,7 @@ const MobileSplashVideo = () => {
|
||||
setShareQrModal({
|
||||
visible: true,
|
||||
url: musiclandShareUrl,
|
||||
title: 'Scannez le QR-code',
|
||||
title: musiclandShareHeading,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import { Image } from 'expo-image'
|
||||
import React from 'react'
|
||||
import { Platform, Pressable, Text } from 'react-native'
|
||||
import { icons } from '../assets'
|
||||
import { musiclandShareHeading } from '../data'
|
||||
import { Palette } from '../styles'
|
||||
import { FONT_FAMILY } from '../styles/Fonts'
|
||||
import alert from './Alert'
|
||||
@@ -13,7 +14,7 @@ export default function ShareBtnWeb({ style }) {
|
||||
if (typeof navigator !== 'undefined' && navigator.share) {
|
||||
navigator
|
||||
.share({
|
||||
title: 'MusicLand',
|
||||
title: musiclandShareHeading,
|
||||
text: 'Découvre mon expérience sur MusicLand',
|
||||
...(shareUrl ? { url: shareUrl } : {}),
|
||||
})
|
||||
|
||||
@@ -28,7 +28,7 @@ const ShareModal = ({ payload }) => {
|
||||
const copyUrl = payload?.copyUrl ?? payload?.qrUrl ?? payload?.url ?? musiclandShareUrl
|
||||
const linkLabel = payload?.linkLabel ?? copyUrl
|
||||
const sectionTitle = payload?.sectionTitle ?? 'Partager sur...'
|
||||
const qrTitle = payload?.qrTitle ?? 'Partage Musicland avec tes amis'
|
||||
const qrTitle = payload?.qrTitle ?? musiclandShareHeading
|
||||
const qrUrl = payload?.qrUrl ?? musiclandShareUrl
|
||||
|
||||
const [copied, setCopied] = useState(false)
|
||||
|
||||
@@ -3,11 +3,12 @@ import { BlurView } from 'expo-blur'
|
||||
import React, { useEffect, useMemo } from 'react'
|
||||
import { Platform, Pressable, StyleSheet, Text, View } from 'react-native'
|
||||
|
||||
import { musiclandShareHeading } from '../../data'
|
||||
import { Palette } from '../../styles'
|
||||
import { FONT_FAMILY } from '../../styles/Fonts'
|
||||
import QrCode from '../QrCode'
|
||||
|
||||
const ShareQrModal = ({ visible, onClose, url, title = 'Partage Musicland avec tes amis' }) => {
|
||||
const ShareQrModal = ({ visible, onClose, url, title = musiclandShareHeading }) => {
|
||||
const shareUrl = useMemo(() => url, [url])
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useEffect } from 'react'
|
||||
import { useGlobal } from 'reactn'
|
||||
|
||||
import { musiclandShareUrl } from '../../data'
|
||||
import { musiclandShareHeading, musiclandShareUrl } from '../../data'
|
||||
import ShareQrModal from './ShareQrModal'
|
||||
|
||||
const ShareQrModalContainer = () => {
|
||||
@@ -29,7 +29,7 @@ const ShareQrModalContainer = () => {
|
||||
<ShareQrModal
|
||||
visible={!!visible}
|
||||
url={url || musiclandShareUrl}
|
||||
title={title || 'Partage Musicland avec tes amis'}
|
||||
title={title || musiclandShareHeading}
|
||||
onClose={handleClose}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user