more fixes web + mobile
This commit is contained in:
@@ -115,49 +115,6 @@ export const ChooseCoverType = () => {
|
||||
[currentUID, projectId],
|
||||
);
|
||||
|
||||
// const pickUserImage = useCallback(async () => {
|
||||
// try {
|
||||
// await setIsLoading(true);
|
||||
// const result = await ImagePicker.launchImageLibraryAsync({
|
||||
// mediaTypes: ["images"],
|
||||
// allowsEditing: true,
|
||||
// aspect: [1, 1],
|
||||
// quality: 1,
|
||||
// });
|
||||
|
||||
// const uri = result?.assets?.[0]?.uri || null;
|
||||
// if (!uri) return;
|
||||
|
||||
// if (!projectId) return;
|
||||
// const path = `musics/${projectId}/userSelectedCover.png`;
|
||||
|
||||
// const { resultURI } = await uploadFileToFirebase({
|
||||
// uri,
|
||||
// path,
|
||||
// shouldCompress: true,
|
||||
// fileType: "IMAGE",
|
||||
// });
|
||||
|
||||
// if (!resultURI) {
|
||||
// throw new Error("Erreur lors de l'upload");
|
||||
// }
|
||||
// await updateProjectData({
|
||||
// cover: {
|
||||
// result: resultURI,
|
||||
// },
|
||||
// });
|
||||
// navigate(Routes.ValidateCover);
|
||||
// } catch (e) {
|
||||
// console.log("onPickUserImage error", e?.message);
|
||||
// } finally {
|
||||
// await setIsLoading(false);
|
||||
// }
|
||||
// }, [projectId, setIsLoading, updateProjectData]);
|
||||
|
||||
// const handlePickUserImage = useCallback(() => {
|
||||
// ensureArtistPreference(pickUserImage);
|
||||
// }, [ensureArtistPreference, pickUserImage]);
|
||||
|
||||
const handleGenerateCover = useCallback(() => {
|
||||
if (hasFinalCover || hasGeneratedOptions) {
|
||||
navigate(Routes.ValidateCover);
|
||||
@@ -300,10 +257,10 @@ export const ChooseCoverType = () => {
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
<FullscreenIntroVideo
|
||||
visible={showIntro}
|
||||
onClose={() => setShowIntro(false)}
|
||||
/>
|
||||
{/*<FullscreenIntroVideo*/}
|
||||
{/* visible={showIntro}*/}
|
||||
{/* onClose={() => setShowIntro(false)}*/}
|
||||
{/*/>*/}
|
||||
<Modal
|
||||
visible={choiceVisible}
|
||||
transparent
|
||||
|
||||
Reference in New Issue
Block a user