File tree 1 file changed +5
-10
lines changed
packages/app/features/affiliate
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
18
18
import { useAffiliateReferrals } from './utils/useAffiliateReferrals'
19
19
import { Fragment } from 'react'
20
20
import { useAffiliateStats } from './utils/useAffiliateStats'
21
+ import type { Functions } from '@my/supabase/database.types'
21
22
22
23
export const AffiliateScreen = ( ) => {
23
24
return (
@@ -171,20 +172,14 @@ const ReferralsList = () => {
171
172
)
172
173
}
173
174
174
- const ReferralsListRow = ( { referral } ) => {
175
+ const ReferralsListRow = ( {
176
+ referral,
177
+ } : { referral : Functions < 'get_affiliate_referrals' > [ number ] } ) => {
175
178
const date = new Date ( referral ?. created_at ) . toLocaleString ( undefined , { dateStyle : 'medium' } )
176
179
177
180
return (
178
181
< Card bc = "$color0" ai = "center" >
179
- < Link
180
- href = { `/profile/${ referral . profile ?. send_id } ` }
181
- f = { 1 }
182
- als = "stretch"
183
- px = "$5"
184
- py = "$3"
185
- w = "100%"
186
- h = "100%"
187
- >
182
+ < Link href = { `/${ referral . tag } }` } f = { 1 } als = "stretch" px = "$5" py = "$3" w = "100%" h = "100%" >
188
183
< XStack gap = "$5" f = { 1 } ai = "center" jc = { 'space-between' } >
189
184
< XStack gap = "$3.5" f = { 1 } ai = "center" >
190
185
< Avatar size = "$4.5" br = "$4" gap = "$2" >
You can’t perform that action at this time.
0 commit comments