Skip to content

Commit 87d9d47

Browse files
authored
Changed referral texts (#1403)
1 parent d24e29a commit 87d9d47

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

apps/next/pages/account/affiliate.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,20 @@ export const Page: NextPageWithLayout = () => {
99
return (
1010
<>
1111
<Head>
12-
<title>Send | Affiliates</title>
13-
<meta
14-
name="description"
15-
content="View your network and track referral activity."
16-
key="desc"
17-
/>
12+
<title>Send | Friends</title>
13+
<meta name="description" content="View invited friends and track activity." key="desc" />
1814
</Head>
1915
<AffiliateScreen />
2016
</>
2117
)
2218
}
2319

24-
const subheader = 'View your network and track referral activity.'
20+
const subheader = 'View invited friends and track activity.'
2521

2622
export const getServerSideProps = userProtectedGetSSP()
2723

2824
Page.getLayout = (children) => (
29-
<HomeLayout TopNav={<TopNav header="Affiliate" subheader={subheader} />}>{children}</HomeLayout>
25+
<HomeLayout TopNav={<TopNav header="Friends" subheader={subheader} />}>{children}</HomeLayout>
3026
)
3127

3228
export default Page

packages/app/features/account/components/AccountHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const AccountHeader = (props: YStackProps) => {
6666
<Button.Icon>
6767
<IconShare size={'$1.5'} color={'$primary'} $theme-light={{ color: '$color12' }} />
6868
</Button.Icon>
69-
<Button.Text size={'$5'}>Refer Friends</Button.Text>
69+
<Button.Text size={'$5'}>Invite Friends</Button.Text>
7070
</Button>
7171
<Button f={1} py={'$5'} h={'auto'} br={'$5'} bw={0} hoverStyle={hoverStyles}>
7272
<Button.Icon>

packages/app/features/account/components/AccountLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const ACCOUNT_LINKS: {
5858
icon: <IconStarOutline {...iconProps} />,
5959
},
6060
{
61-
text: 'Affiliate',
61+
text: 'Friends',
6262
href: '/account/affiliate',
6363
icon: <IconDollar {...iconProps} scale={1.2} />,
6464
},

packages/app/features/affiliate/screen.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const StatsCards = () => {
5050
>
5151
<Card $gtLg={{ flexShrink: 0, flexBasis: '32%' }} w="100%" mih={152}>
5252
<CardHeader>
53-
<Label color={'$color10'}>Total Referrals</Label>
53+
<Label color={'$color10'}>Your Friends</Label>
5454
</CardHeader>
5555
{isLoading ? (
5656
<Spinner alignSelf="flex-start" size="large" color="$color12" mt="auto" p="$4" />
@@ -94,7 +94,9 @@ const ReferralsList = () => {
9494
return (
9595
<YStack space="$4">
9696
<XStack alignItems="center" gap="$3">
97-
<H3 fontWeight={'normal'}>{!pages || !pages[0]?.length ? 'No Referrals' : 'Referrals'}</H3>
97+
<H3 fontWeight={'normal'}>
98+
{!pages || !pages[0]?.length ? 'No invited friends yet' : 'Friends'}
99+
</H3>
98100
</XStack>
99101
{Boolean(pages?.[0]?.length) && (
100102
<Card gap="$5" p="$5" w="100%" fd="row" flexWrap="wrap">
@@ -144,7 +146,9 @@ const ReferralsList = () => {
144146

145147
const ReferralsListRow = ({
146148
referral,
147-
}: { referral: Functions<'get_affiliate_referrals'>[number] }) => {
149+
}: {
150+
referral: Functions<'get_affiliate_referrals'>[number]
151+
}) => {
148152
const date = new Date(referral?.created_at).toLocaleString(undefined, { dateStyle: 'medium' })
149153

150154
return (

0 commit comments

Comments
 (0)