feat: fixes
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
import { Image, View } from 'react-native'
|
||||
import { subBadges } from '../../assets'
|
||||
export default function SubscriptionAvatar({ user }) {
|
||||
const subscriptionLevel = user.premiumLevel
|
||||
|
||||
switch (subscriptionLevel) {
|
||||
case 'starter':
|
||||
return <Image source={subBadges.starter} />
|
||||
case 'pro':
|
||||
return <Image source={subBadges.pro} />
|
||||
case 'premium':
|
||||
return <Image source={subBadges.premium} />
|
||||
default:
|
||||
return null
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ const ValidateModal = ({
|
||||
onPressValidate,
|
||||
onPressSecondary,
|
||||
title = 'Attention !',
|
||||
description = 'Lorsque tu clique sur valider, tu ne pourra plus changer ni le texte ni la mélodie.',
|
||||
description = 'Lorsque tu cliques sur valider, tu ne pourras plus changer ni le texte ni la mélodie.',
|
||||
primaryLabel = 'Valider',
|
||||
secondaryLabel = 'Retour',
|
||||
}) => {
|
||||
|
||||
@@ -21,7 +21,7 @@ import GradientButton from '../../components/GradientButton'
|
||||
import ValidateModal from '../../components/modal/ValidateModal'
|
||||
import MusicLandHeader from '../../components/MusicLandHeader'
|
||||
import ProgressSlider from '../../components/player/ProgressSlider'
|
||||
import { isWeb } from '../../hooks/useLayoutType'
|
||||
import { isDesktopWeb, isWeb } from '../../hooks/useLayoutType'
|
||||
import Page from '../../layouts/Page'
|
||||
import { Routes } from '../../navigation'
|
||||
import { navigate, reset } from '../../navigation/NavigationService'
|
||||
@@ -164,7 +164,7 @@ const SongReady = () => {
|
||||
if (isWeb) {
|
||||
alert(
|
||||
'Attention !',
|
||||
'Lorsque tu clique sur valider, tu ne pourra plus changer ni le texte ni la mélodie.',
|
||||
'Lorsque tu cliques sur valider, tu ne pourras plus changer ni le texte ni la mélodie.',
|
||||
[
|
||||
{
|
||||
text: 'Retour',
|
||||
@@ -272,7 +272,7 @@ const SongReady = () => {
|
||||
title="Ta chanson est prête !"
|
||||
subTitle="Choisis ton morceau"
|
||||
containerStyle={{
|
||||
marginBottom: responsiveHeight(2),
|
||||
marginBottom: !isDesktopWeb ? responsiveHeight(2) : responsiveHeight(22),
|
||||
}}
|
||||
/>
|
||||
<FlatList
|
||||
|
||||
Reference in New Issue
Block a user