From ad2fcd0070988f0ca2326f25d7672c4f9dbffca2 Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 11 Jun 2024 22:29:11 -0700 Subject: [PATCH] tweaks --- .../StarterPack/ProfileStarterPacks.tsx | 4 ++-- src/screens/StarterPack/Landing/index.tsx | 4 ++-- src/screens/StarterPack/Main/index.tsx | 21 ++++++++----------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/components/StarterPack/ProfileStarterPacks.tsx b/src/components/StarterPack/ProfileStarterPacks.tsx index e24150d1e9..342fa4a593 100644 --- a/src/components/StarterPack/ProfileStarterPacks.tsx +++ b/src/components/StarterPack/ProfileStarterPacks.tsx @@ -12,7 +12,7 @@ import {useLingui} from '@lingui/react' import {cleanError} from '#/lib/strings/errors' import {useTheme} from '#/lib/ThemeContext' import {logger} from '#/logger' -import {isNative} from '#/platform/detection' +import {isNative, isWeb} from '#/platform/detection' import {usePalette} from 'lib/hooks/usePalette' import {useActorStarterPacksQuery} from 'state/queries/actor-starter-packs' import {usePreferencesQuery} from 'state/queries/preferences' @@ -149,7 +149,7 @@ export const ProfileStarterPacks = React.forwardRef< ) } diff --git a/src/screens/StarterPack/Landing/index.tsx b/src/screens/StarterPack/Landing/index.tsx index 36c13c4c45..e5202e9bc6 100644 --- a/src/screens/StarterPack/Landing/index.tsx +++ b/src/screens/StarterPack/Landing/index.tsx @@ -148,7 +148,7 @@ function LandingScreenInner({ Join Bluesky now - {!!joinedWeekCount && joinedWeekCount >= -1 && ( + {joinedWeekCount && joinedWeekCount >= 25 && ( - 180 joined this week! + {joinedWeekCount} joined this week! )} diff --git a/src/screens/StarterPack/Main/index.tsx b/src/screens/StarterPack/Main/index.tsx index 73f138748e..221e9b6b39 100644 --- a/src/screens/StarterPack/Main/index.tsx +++ b/src/screens/StarterPack/Main/index.tsx @@ -1,7 +1,7 @@ import React from 'react' import {Pressable, View} from 'react-native' import {AppBskyGraphDefs, AppBskyGraphStarterpack} from '@atproto/api' -import {msg, Plural, Trans} from '@lingui/macro' +import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' import {NativeStackScreenProps} from '@react-navigation/native-stack' @@ -209,17 +209,14 @@ function Header({ {record.description} - - - {starterPack.joinedAllTimeCount || 0}{' '} - {' '} - joined this starter pack! - - + {starterPack.joinedWeekCount && starterPack.joinedWeekCount >= 25 ? ( + + + {starterPack.joinedAllTimeCount || 0} people have used this + starter pack! + + + ) : null}