share modal

This commit is contained in:
2025-10-03 11:32:47 +02:00
parent d03cec164f
commit 8ea7f89c7b
12 changed files with 413 additions and 125 deletions
+12 -12
View File
@@ -1,21 +1,21 @@
import React, { useCallback, useEffect, useMemo, useState } from "react";
import { Platform, StyleSheet, View } from "react-native";
import Page from "../../layouts/Page";
import { background } from "../../assets";
import { gutters, Palette } from "../../styles";
import { navigate } from "../../navigation/NavigationService";
import { Routes } from "../../navigation";
import { useUser } from "../../providers/UserDataProvider";
import ProjectDropDown from "../../components/ProjectDropDown/ProjectDropDown";
import BorderGradientButton from "../../components/BorderGradientButton";
import FeatureCarousel from "../../components/FeatureCarousel/FeatureCarousel";
import GradientButton from "../../components/GradientButton";
import BorderGradientButton from "../../components/BorderGradientButton";
import { isWeb } from "../../hooks/useLayoutType.js";
import ProjectDropDown from "../../components/ProjectDropDown/ProjectDropDown";
import ShareBtn from "../../components/ShareBtn/ShareBtn";
import { isWeb } from "../../hooks/useLayoutType.js";
import Page from "../../layouts/Page";
import { Routes } from "../../navigation";
import { navigate } from "../../navigation/NavigationService";
import { useUser } from "../../providers/UserDataProvider";
import { gutters, Palette } from "../../styles";
import {
findFirstUnlockedStageIndex,
getCreationStageStates,
getStageAction,
findFirstUnlockedStageIndex,
} from "../../utils/projectStages";
const Home = () => {
@@ -29,7 +29,7 @@ const Home = () => {
const projects = useMemo(
() => (Array.isArray(userProjects) ? userProjects : []),
[userProjects],
[userProjects]
);
const currentProject = useMemo(() => {
@@ -75,7 +75,7 @@ const Home = () => {
const stageStates = useMemo(
() => getCreationStageStates(currentProject),
[currentProject],
[currentProject]
);
const firstUnlockedIndex = useMemo(() => {
@@ -139,7 +139,7 @@ const Home = () => {
const songwriterAction = useMemo(
() => getStageAction("songwriter", null),
[],
[]
);
const handleStartNew = useCallback(() => {
@@ -1,6 +1,6 @@
import { Image as ExpoImage } from "expo-image";
import React, { useState } from "react";
import { Pressable, ScrollView, Text, View } from "react-native";
import { Image as ExpoImage } from "expo-image";
import { img } from "../../../assets";
import MoreMenu from "../../../components/MoreMenu";
import { Routes } from "../../../navigation";
@@ -85,12 +85,12 @@ const SearchResultsList = ({
setShowMenu(
(previous) =>
!previous ||
positionTop?.top !== (menuPosition?.top ?? null),
positionTop?.top !== (menuPosition?.top ?? null)
);
}}
/>
))}
{(filteredProjects.length >= 6 || projectsLoading) && (
{/* {(filteredProjects.length >= 6 || projectsLoading) && (
<Pressable
onPress={loadMoreProjects}
style={{ alignSelf: "center", marginTop: 6 }}
@@ -106,7 +106,7 @@ const SearchResultsList = ({
{projectsLoading ? "Chargement…" : "Charger plus"}
</Text>
</Pressable>
)}
)} */}
</View>
)}
{filteredProjects.length === 0 && !projectsLoading && (
@@ -163,7 +163,7 @@ const SearchResultsList = ({
</Text>
</Pressable>
))}
{(filteredUsers.length >= 5 || usersLoading) && (
{/* {(filteredUsers.length >= 5 || usersLoading) && (
<Pressable
onPress={loadMoreUsers}
style={{ alignSelf: "center", marginTop: 6 }}
@@ -179,7 +179,7 @@ const SearchResultsList = ({
{usersLoading ? "Chargement…" : "Charger plus"}
</Text>
</Pressable>
)}
)} */}
</View>
)}
{filteredUsers.length === 0 && !usersLoading && (