File tree Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Expand file tree Collapse file tree 2 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,12 @@ import {
10
10
} from '@my/ui'
11
11
import { useUser } from 'app/utils/useUser'
12
12
import { CheckCheck } from '@tamagui/lucide-icons'
13
- import { type ReactNode , useEffect , useState } from 'react'
13
+ import { useEffect , useState } from 'react'
14
14
import { IconCopy } from './icons'
15
15
import * as Clipboard from 'expo-clipboard'
16
16
import { useConfirmedTags } from 'app/utils/tags'
17
17
18
- type ReferralLink = { label ?: ReactNode } & ButtonProps
19
-
20
- export function ReferralLink ( { label, ...props } : ReferralLink ) {
18
+ export function ReferralLink ( props : ButtonProps ) {
21
19
const { profile } = useUser ( )
22
20
const send_id = profile ?. send_id
23
21
const tags = useConfirmedTags ( )
@@ -62,11 +60,9 @@ export function ReferralLink({ label, ...props }: ReferralLink) {
62
60
63
61
return (
64
62
< XStack ai = { 'center' } gap = { '$2' } width = { '100%' } >
65
- { label || (
66
- < Paragraph size = { '$5' } color = { '$color10' } flexShrink = { 0 } >
67
- Referral Code:
68
- </ Paragraph >
69
- ) }
63
+ < Paragraph size = { '$5' } color = { '$color10' } flexShrink = { 0 } >
64
+ Referral Code:
65
+ </ Paragraph >
70
66
< Button
71
67
chromeless
72
68
flex = { 1 }
@@ -91,7 +87,7 @@ export function ReferralLink({ label, ...props }: ReferralLink) {
91
87
< ButtonText
92
88
fontSize = { '$5' }
93
89
fontWeight = { '500' }
94
- bc = "$background "
90
+ bc = "transparent "
95
91
maxWidth = { '85%' }
96
92
hoverStyle = { {
97
93
color : '$primary' ,
Original file line number Diff line number Diff line change @@ -120,15 +120,10 @@ export const FriendsScreen = () => {
120
120
121
121
if ( referrals . length === 0 ) {
122
122
return (
123
- < XStack ai = { 'flex-start' } pt = { '$5' } >
124
- < ReferralLink
125
- f = { 0 }
126
- p = { 0 }
127
- label = {
128
- < Paragraph size = { '$5' } > Invite friends to Send using your referral code:</ Paragraph >
129
- }
130
- />
131
- </ XStack >
123
+ < YStack w = { '100%' } ai = { 'flex-start' } pt = { '$5' } gap = { '$5' } >
124
+ < Paragraph size = { '$5' } > Invite friends to Send using your referral code.</ Paragraph >
125
+ < ReferralLink f = { 0 } p = { 0 } />
126
+ </ YStack >
132
127
)
133
128
}
134
129
You can’t perform that action at this time.
0 commit comments