diff --git a/src/components/AppActionSheet.js b/src/components/AppActionSheet.js index 97617c1..e2de421 100644 --- a/src/components/AppActionSheet.js +++ b/src/components/AppActionSheet.js @@ -19,7 +19,7 @@ const AppActionSheet = ({ children, props }) => { {...props} > { borderTopRightRadius: 20, overflow: "hidden", }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > {children} diff --git a/src/components/BlurItemButton.js b/src/components/BlurItemButton.js index 3253b9b..19595ed 100644 --- a/src/components/BlurItemButton.js +++ b/src/components/BlurItemButton.js @@ -17,11 +17,11 @@ const BlurItemButton = ({ onPress, title = "" }) => { return ( {title} {icon && } {children} diff --git a/src/components/ItemContainer/ItemContainer.web.js b/src/components/ItemContainer/ItemContainer.web.js index 6cbfd68..ac29d31 100644 --- a/src/components/ItemContainer/ItemContainer.web.js +++ b/src/components/ItemContainer/ItemContainer.web.js @@ -46,7 +46,7 @@ const ItemContainer = ({ }} > {children} diff --git a/src/components/MoreMenu.js b/src/components/MoreMenu.js index 0bf9079..dd605d5 100644 --- a/src/components/MoreMenu.js +++ b/src/components/MoreMenu.js @@ -89,7 +89,7 @@ const MoreMenu = ({ {inPlaylist && ( { }} > { {/* INPUT en bas du contenu */} { height: 54, borderRadius: 16, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { title="Inscription" > - + diff --git a/src/screens/CreateSongs.js b/src/screens/CreateSongs.js index f1751eb..7a9977a 100644 --- a/src/screens/CreateSongs.js +++ b/src/screens/CreateSongs.js @@ -18,13 +18,15 @@ const CreateSongs = () => { const { userProjects = [] } = useUser(); const projects = useMemo( () => (Array.isArray(userProjects) ? userProjects.slice(0, 3) : []), - [userProjects], + [userProjects] ); const fmtDate = (ts) => { try { const d = ts?.toDate ? ts.toDate() : ts ? new Date(ts) : null; if (!d || Number.isNaN(d.getTime())) return ""; - const dd = `${d.getDate().toString().padStart(2, "0")}/${(d.getMonth() + 1) + const dd = `${d.getDate().toString().padStart(2, "0")}/${( + d.getMonth() + 1 + ) .toString() .padStart(2, "0")}`; return dd; @@ -67,7 +69,7 @@ const CreateSongs = () => { resizeMode="contain" /> { gap: 20, paddingVertical: 20, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { backgroundColor: Palette.glass, overflow: "hidden", }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { ))} { +const SongCard = ({ + rank = 1, + title = "Sans titre", + artist = "MusicLand", + coverUrl = null, + onPress = null, +}) => { return ( )} { const { userProjects = [], resetSelectedProject, selectProject } = useUser(); const projects = useMemo( () => (Array.isArray(userProjects) ? userProjects : []), - [userProjects], + [userProjects] ); const [, setTooltip] = useGlobal("_tooltip"); const [menuTop, setMenuTop] = useState(0); @@ -42,7 +42,7 @@ const Home = () => { }} > { padding: 12, gap: 8, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { onPress: async () => { try { if (!menuProjectId) return; - await projectsRef - .doc(menuProjectId) - .delete(); + await projectsRef.doc(menuProjectId).delete(); setTooltip({ type: "success", text: "Projet supprimé", @@ -126,7 +124,7 @@ const Home = () => { }, }, ], - { cancelable: true }, + { cancelable: true } ), }, ]} diff --git a/src/screens/Library/AllMyPlaylist.js b/src/screens/Library/AllMyPlaylist.js index caca0b4..faf51ed 100644 --- a/src/screens/Library/AllMyPlaylist.js +++ b/src/screens/Library/AllMyPlaylist.js @@ -45,15 +45,15 @@ const AllMyPlaylist = () => { > diff --git a/src/screens/Library/components/MyPlaylist.js b/src/screens/Library/components/MyPlaylist.js index 44bb92a..48769a8 100644 --- a/src/screens/Library/components/MyPlaylist.js +++ b/src/screens/Library/components/MyPlaylist.js @@ -30,15 +30,15 @@ const MyPlaylist = () => { } > {item} diff --git a/src/screens/Login.js b/src/screens/Login.js index b53bdbf..37a0567 100644 --- a/src/screens/Login.js +++ b/src/screens/Login.js @@ -173,7 +173,7 @@ export default ({ navigation }) => { hideBackButton > - + { onPressOption(index, item)}> { overflow: "hidden", backgroundColor: Palette.glass, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { }} > diff --git a/src/screens/Playbacks.js b/src/screens/Playbacks.js index bfa292e..063121a 100644 --- a/src/screens/Playbacks.js +++ b/src/screens/Playbacks.js @@ -282,7 +282,7 @@ const PlaybackItem = ({ item, isActive, userCache, getUserByUid }) => { > { overflow: "hidden", backgroundColor: isFollowing ? "#FFFFFF1A" : undefined, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { { backgroundColor: Palette.glass, overflow: "hidden", }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > {alignedWords?.length > 0 ? ( { const [activeIndex, setActiveIndex] = useState(0); const carouselRef = useRef(null); const route = useRoute(); - const focusProjectId = route?.params?.projectId || route?.params?.focusId || null; + const focusProjectId = + route?.params?.projectId || route?.params?.focusId || null; const userCache = useRef(new Map()); const { getUserByUid } = useUser() || {}; const isFocused = useIsFocused(); diff --git a/src/screens/Production/DownloadSongs.js b/src/screens/Production/DownloadSongs.js index 52e621e..ed4c842 100644 --- a/src/screens/Production/DownloadSongs.js +++ b/src/screens/Production/DownloadSongs.js @@ -122,11 +122,11 @@ const DownloadSongs = ({ route }) => { > Télécharger{" "} @@ -145,11 +145,11 @@ const DownloadSongs = ({ route }) => { > Diffuser{" "} diff --git a/src/screens/Profile/ChangeEmailAddress.js b/src/screens/Profile/ChangeEmailAddress.js index a9c833d..d5d5708 100644 --- a/src/screens/Profile/ChangeEmailAddress.js +++ b/src/screens/Profile/ChangeEmailAddress.js @@ -57,7 +57,7 @@ const ChangeEmailAddress = () => { try { const credential = firebase.auth.EmailAuthProvider.credential( user.email, - currentPassword, + currentPassword ); await user.reauthenticateWithCredential(credential); } catch (reauthErr) { @@ -96,7 +96,7 @@ const ChangeEmailAddress = () => { > { overflow: "hidden", backgroundColor: Palette.glass, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { const credential = firebase.auth.EmailAuthProvider.credential( user.email, - oldVal, + oldVal ); await user.reauthenticateWithCredential(credential); await user.updatePassword(newVal); @@ -58,7 +58,7 @@ const ChangePassword = () => { > { backgroundColor: Palette.glass, gap: 4, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { > { overflow: "hidden", gap: 24, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { > { borderRadius: 20, overflow: "hidden", }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { setTooltip({ type: "success", text: "Préférence enregistrée" }); } catch (e) { setIsSwitch(!next); - setTooltip({ type: "error", text: e?.message || "Enregistrement impossible" }); + setTooltip({ + type: "error", + text: e?.message || "Enregistrement impossible", + }); } }; @@ -49,7 +52,7 @@ export default (props) => { > { overflow: "hidden", backgroundColor: Palette.glass, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { { /> {item} diff --git a/src/screens/Profile/components/EditInput.js b/src/screens/Profile/components/EditInput.js index 021d6af..b0cd1a3 100644 --- a/src/screens/Profile/components/EditInput.js +++ b/src/screens/Profile/components/EditInput.js @@ -12,7 +12,13 @@ import { FONT_FAMILY } from "../../../styles/Fonts"; import { BlurView } from "expo-blur"; import { icons } from "../../../assets"; -const EditInput = ({ label = "", placeholder = "", type = "default", value = "", setValue = () => {} }) => { +const EditInput = ({ + label = "", + placeholder = "", + type = "default", + value = "", + setValue = () => {}, +}) => { const [showPassword, setShowPassword] = useState(false); return ( @@ -42,7 +48,7 @@ const EditInput = ({ label = "", placeholder = "", type = "default", value = "", { title="Inscription" > - + { const elapsed = moment().diff(moment(startDate)); const pct = Math.max( 0, - Math.min(100, Math.floor((elapsed / totalMs) * 100)), + Math.min(100, Math.floor((elapsed / totalMs) * 100)) ); setProgress(pct); if (pct >= 100) { @@ -130,7 +130,7 @@ const CreatingSong = ({ active, config }) => { firebase.firestore.FieldValue.serverTimestamp(), updatedAt: firebase.firestore.FieldValue.serverTimestamp(), }, - { merge: true }, + { merge: true } ); } } catch (e) { @@ -184,12 +184,12 @@ const CreatingSong = ({ active, config }) => { }} > { { text: "Oui", onPress: () => startMusicGenerationOnce() }, ]); } - }, [ - isFocused, - selectedProject?.title, - selectedProject?.musicStatus, - ]); + }, [isFocused, selectedProject?.title, selectedProject?.musicStatus]); return ( @@ -236,7 +232,7 @@ const GeneratingSong = () => { /> { padding: 12, backgroundColor: "#FFFFFF0A", }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { {[0, 1].map((idx) => ( { padding: 12, backgroundColor: "#FFFFFF0A", }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > { }} > { const Row = ({ item: rowData }) => ( @@ -79,7 +79,10 @@ const CustomizeSongStructure = ({ baseStructure = [], onChange }) => { title="Personnalise la structure de ta chanson" subTitle="Réorganise par glisser-déposer" /> - setContainerLayout(e.nativeEvent.layout)}> + setContainerLayout(e.nativeEvent.layout)} + > { // Enable auto-scroll when dragging near edges scrollableRef={scrollRef} onDragEnd={({ data: newData }) => { - const values = (newData || []).map((it) => it?.value).filter(Boolean); + const values = (newData || []) + .map((it) => it?.value) + .filter(Boolean); onChange?.(values); }} /> diff --git a/src/screens/Writing/components/CreateLyricsHeader.js b/src/screens/Writing/components/CreateLyricsHeader.js index 30cb12a..30363d2 100644 --- a/src/screens/Writing/components/CreateLyricsHeader.js +++ b/src/screens/Writing/components/CreateLyricsHeader.js @@ -100,9 +100,9 @@ const CreateLyricsHeader = ({ gap: 4, ...blurViewStyle, }} - experimentalBlurMethod={ - Platform.OS !== "ios" ? "dimezisBlurView" : "none" - } + // experimentalBlurMethod={ + // Platform.OS !== "ios" ? "dimezisBlurView" : "none" + // } > {title && (