@@ -4,7 +4,7 @@ import {msg, Trans} from '@lingui/macro'
4
4
import { useLingui } from '@lingui/react'
5
5
6
6
import { useModerationOpts } from '#/state/preferences/moderation-opts'
7
- import { useSuggestedStarterPacksQuery } from '#/state/queries/useSuggestedStarterPacksQuery '
7
+ import { useOnboardingSuggestedStarterPacksQuery } from '#/state/queries/useOnboardingSuggestedStarterPacksQuery '
8
8
import { useOnboardingDispatch } from '#/state/shell'
9
9
import { OnboardingControls } from '#/screens/Onboarding/Layout'
10
10
import { Context } from '#/screens/Onboarding/state'
@@ -34,12 +34,12 @@ export function StepSuggestedStarterpacks() {
34
34
// }, [contentLanguages])
35
35
36
36
const {
37
- data : suggestedUsers ,
37
+ data : suggestedStarterPacks ,
38
38
isLoading,
39
39
error,
40
40
isRefetching,
41
41
refetch,
42
- } = useSuggestedStarterPacksQuery ( {
42
+ } = useOnboardingSuggestedStarterPacksQuery ( {
43
43
enabled : true ,
44
44
overrideInterests : state . interestsStepResults . selectedInterests ,
45
45
} )
@@ -53,7 +53,7 @@ export function StepSuggestedStarterpacks() {
53
53
54
54
return (
55
55
< View style = { [ a . align_start ] } testID = "onboardingInterests" >
56
- < Text style = { [ a . font_heavy , a . text_3xl ] } >
56
+ < Text style = { [ a . font_bold , a . text_3xl ] } >
57
57
< Trans comment = "Accounts suggested to the user for them to follow" >
58
58
Suggested for you
59
59
</ Trans >
@@ -100,7 +100,7 @@ export function StepSuggestedStarterpacks() {
100
100
</ View >
101
101
) : (
102
102
< View style = { [ a . flex_1 , a . mt_md ] } >
103
- { suggestedUsers ?. starterPacks . map ( starterPack => (
103
+ { suggestedStarterPacks ?. starterPacks . map ( starterPack => (
104
104
< View style = { [ a . pb_lg ] } key = { starterPack . uri } >
105
105
< StarterPackCard view = { starterPack } />
106
106
</ View >
@@ -150,49 +150,3 @@ export function StepSuggestedStarterpacks() {
150
150
</ View >
151
151
)
152
152
}
153
-
154
- // function TabBar({
155
- // selectedInterest,
156
- // onSelectInterest,
157
- // selectedInterests,
158
- // hideDefaultTab,
159
- // defaultTabLabel,
160
- // }: {
161
- // selectedInterest: string | null
162
- // onSelectInterest: (interest: string | null) => void
163
- // selectedInterests: string[]
164
- // hideDefaultTab?: boolean
165
- // defaultTabLabel?: string
166
- // }) {
167
- // const {_} = useLingui()
168
- // const interestsDisplayNames = useInterestsDisplayNames()
169
- // const interests = Object.keys(interestsDisplayNames)
170
- // .sort(boostInterests(popularInterests))
171
- // .sort(boostInterests(selectedInterests))
172
-
173
- // return (
174
- // <InterestTabs
175
- // interests={hideDefaultTab ? interests : ['all', ...interests]}
176
- // selectedInterest={
177
- // selectedInterest || (hideDefaultTab ? interests[0] : 'all')
178
- // }
179
- // onSelectTab={tab => {
180
- // logger.metric(
181
- // 'onboarding:suggestedAccounts:tabPressed',
182
- // {tab: tab},
183
- // {statsig: true},
184
- // )
185
- // onSelectInterest(tab === 'all' ? null : tab)
186
- // }}
187
- // interestsDisplayNames={
188
- // hideDefaultTab
189
- // ? interestsDisplayNames
190
- // : {
191
- // all: defaultTabLabel || _(msg`For You`),
192
- // ...interestsDisplayNames,
193
- // }
194
- // }
195
- // gutterWidth={isWeb ? 0 : tokens.space.xl}
196
- // />
197
- // )
198
- // }
0 commit comments