clear more tickets
This commit is contained in:
@@ -94,7 +94,6 @@ const STAGE_CARD_CONTENT = [
|
||||
},
|
||||
];
|
||||
|
||||
const CLUB_CARD_IMAGE = icons.clubIcon;
|
||||
const ACTIVE_SUBSCRIPTION_STATUSES = new Set([
|
||||
"trialing",
|
||||
"active",
|
||||
@@ -114,6 +113,7 @@ const Home = ({ navigation, route }) => {
|
||||
videos,
|
||||
} = useUser();
|
||||
const { setTooltip } = useMinuit();
|
||||
const [videoUrl, setVideoUrl] = useState(null);
|
||||
|
||||
const hasActiveSubscription = useMemo(() => {
|
||||
if (!currentUserData) {
|
||||
@@ -208,7 +208,6 @@ const Home = ({ navigation, route }) => {
|
||||
const [menuAnchor, setMenuAnchor] = useState(null);
|
||||
const [menuProject, setMenuProject] = useState(null);
|
||||
const menuAnchorRef = useRef(null);
|
||||
const [isIntroVideoVisible, setIsIntroVideoVisible] = useState(false);
|
||||
const [hasLocalAdventureFlag, setHasLocalAdventureFlag] = useState(false);
|
||||
|
||||
const handleSelectProject = useCallback(
|
||||
@@ -404,18 +403,17 @@ const Home = ({ navigation, route }) => {
|
||||
}, [hasLocalAdventureFlag, persistAdventureStarted, setTooltip]);
|
||||
|
||||
const handleStartVisit = useCallback(() => {
|
||||
setIsIntroVideoVisible(true);
|
||||
setVideoUrl(isWeb ? videos?.landingWeb : videos?.landing);
|
||||
}, []);
|
||||
|
||||
const handleIntroVideoClose = useCallback(() => {
|
||||
setIsIntroVideoVisible(false);
|
||||
setVideoUrl(null);
|
||||
markAdventureStarted();
|
||||
}, [markAdventureStarted]);
|
||||
|
||||
const adventureStarted =
|
||||
hasLocalAdventureFlag || !!currentUserData?.adventureStarted;
|
||||
|
||||
const videoUrl = isWeb ? videos?.landingWeb : videos?.landing;
|
||||
const homeBackgroundImage = background.bgTrans;
|
||||
const landingBackgroundImage = homeBackgroundImage;
|
||||
|
||||
@@ -523,10 +521,7 @@ const Home = ({ navigation, route }) => {
|
||||
iconPosition="left"
|
||||
/>
|
||||
</Pressable>
|
||||
<ShareBtn
|
||||
style={styles.mobileShareButton}
|
||||
iconOnly
|
||||
/>
|
||||
<ShareBtn style={styles.mobileShareButton} label="Partager" />
|
||||
</View>
|
||||
) : null;
|
||||
|
||||
@@ -590,7 +585,6 @@ const Home = ({ navigation, route }) => {
|
||||
{stageCardsList}
|
||||
|
||||
<ClubCard
|
||||
image={CLUB_CARD_IMAGE}
|
||||
onPress={handleClubPress}
|
||||
hasActiveSubscription={hasActiveSubscription}
|
||||
/>
|
||||
@@ -654,7 +648,6 @@ const Home = ({ navigation, route }) => {
|
||||
}}
|
||||
>
|
||||
<GradientButton
|
||||
url={videoUrl}
|
||||
title="Commencer l'aventure MusicLand"
|
||||
onPress={handleStartVisit}
|
||||
/>
|
||||
@@ -662,7 +655,7 @@ const Home = ({ navigation, route }) => {
|
||||
</Page>
|
||||
<FullscreenIntroVideo
|
||||
url={videoUrl}
|
||||
visible={isIntroVideoVisible}
|
||||
visible={!!videoUrl}
|
||||
onClose={handleIntroVideoClose}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user