diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-06-24 16:03:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 16:03:32 -0700 |
commit | ed940c637edda3f7a39b2aefb242e30f8ad8c7ff (patch) | |
tree | bb19958e2cd64fd0c8ea11733998352ff768709d /src/screens/StarterPack/StarterPackLandingScreen.tsx | |
parent | 9e89ddeb1c6bd84594f5b9a9152cd0d9b974b9a8 (diff) | |
download | voidsky-ed940c637edda3f7a39b2aefb242e30f8ad8c7ff.tar.zst |
Set up the global 'joined this week' (#4625)
Diffstat (limited to 'src/screens/StarterPack/StarterPackLandingScreen.tsx')
-rw-r--r-- | src/screens/StarterPack/StarterPackLandingScreen.tsx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/screens/StarterPack/StarterPackLandingScreen.tsx b/src/screens/StarterPack/StarterPackLandingScreen.tsx index 1c9587a79..cd4ca151a 100644 --- a/src/screens/StarterPack/StarterPackLandingScreen.tsx +++ b/src/screens/StarterPack/StarterPackLandingScreen.tsx @@ -11,6 +11,7 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {JOINED_THIS_WEEK} from '#/lib/constants' import {isAndroidWeb} from 'lib/browser' import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' import {createStarterPackGooglePlayUri} from 'lib/strings/starter-pack' @@ -21,6 +22,7 @@ import { useActiveStarterPack, useSetActiveStarterPack, } from 'state/shell/starter-pack' +import {formatCount} from '#/view/com/util/numeric/format' import {LoggedOutScreenState} from 'view/com/auth/LoggedOut' import {CenteredView} from 'view/com/util/Views' import {Logo} from 'view/icons/Logo' @@ -95,7 +97,7 @@ function LandingScreenLoaded({ setScreenState: (state: LoggedOutScreenState) => void moderationOpts: ModerationOpts }) { - const {record, creator, listItemsSample, feeds, joinedWeekCount} = starterPack + const {record, creator, listItemsSample, feeds} = starterPack const {_} = useLingui() const t = useTheme() const activeStarterPack = useActiveStarterPack() @@ -200,24 +202,22 @@ function LandingScreenLoaded({ <Trans>Join Bluesky</Trans> </ButtonText> </Button> - {joinedWeekCount && joinedWeekCount >= 25 ? ( - <View style={[a.flex_row, a.align_center, a.gap_sm]}> - <FontAwesomeIcon - icon="arrow-trend-up" - size={12} - color={t.atoms.text_contrast_medium.color} - /> - <Text - style={[ - a.font_semibold, - a.text_sm, - t.atoms.text_contrast_medium, - ]} - numberOfLines={1}> - 123,659 joined this week - </Text> - </View> - ) : null} + <View style={[a.flex_row, a.align_center, a.gap_sm]}> + <FontAwesomeIcon + icon="arrow-trend-up" + size={12} + color={t.atoms.text_contrast_medium.color} + /> + <Text + style={[ + a.font_semibold, + a.text_sm, + t.atoms.text_contrast_medium, + ]} + numberOfLines={1}> + <Trans>{formatCount(JOINED_THIS_WEEK)} joined this week</Trans> + </Text> + </View> </View> <View style={[a.gap_3xl]}> {Boolean(listItemsSample?.length) && ( |