feat: fixes and formatter

This commit is contained in:
2026-01-12 16:01:32 +01:00
parent 85c6084351
commit 11e632acff
353 changed files with 23315 additions and 27361 deletions
+22 -23
View File
@@ -1,30 +1,29 @@
import { BlurView } from "expo-blur";
import { Image } from "expo-image";
import React from "react";
import { Platform, Pressable, Text } from "react-native";
import { icons } from "../assets";
import { Palette } from "../styles";
import { FONT_FAMILY } from "../styles/Fonts";
import alert from "./Alert";
import { BlurView } from 'expo-blur'
import { Image } from 'expo-image'
import React from 'react'
import { Platform, Pressable, Text } from 'react-native'
import { icons } from '../assets'
import { Palette } from '../styles'
import { FONT_FAMILY } from '../styles/Fonts'
import alert from './Alert'
export default function ShareBtnWeb({ style }) {
const handleShare = () => {
const shareUrl =
typeof window !== "undefined" ? window.location.href : undefined;
if (typeof navigator !== "undefined" && navigator.share) {
const shareUrl = typeof window !== 'undefined' ? window.location.href : undefined
if (typeof navigator !== 'undefined' && navigator.share) {
navigator
.share({
title: "MusicLand",
text: "Découvre mon expérience sur MusicLand",
title: 'MusicLand',
text: 'Découvre mon expérience sur MusicLand',
...(shareUrl ? { url: shareUrl } : {}),
})
.catch(() => {
alert("Partage", "Le partage a été annulé.");
});
return;
alert('Partage', 'Le partage a été annulé.')
})
return
}
alert("Partage", "Fonctionnalité disponible prochainement.");
};
alert('Partage', 'Fonctionnalité disponible prochainement.')
}
return (
<Pressable
@@ -34,15 +33,15 @@ export default function ShareBtnWeb({ style }) {
onPress={handleShare}
>
<BlurView
intensity={Platform.OS === "web" ? 35 : 30}
intensity={Platform.OS === 'web' ? 35 : 30}
style={{
flexDirection: "row",
alignItems: "center",
flexDirection: 'row',
alignItems: 'center',
gap: 12,
paddingHorizontal: 24,
paddingVertical: 12,
borderRadius: 999,
backgroundColor: "rgba(255, 255, 255, 0.1)",
backgroundColor: 'rgba(255, 255, 255, 0.1)',
}}
>
<Text
@@ -65,5 +64,5 @@ export default function ShareBtnWeb({ style }) {
/>
</BlurView>
</Pressable>
);
)
}