about summary refs log tree commit diff
path: root/src/screens/Onboarding/StepInterests/index.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-06-26 16:35:42 -0500
committerGitHub <noreply@github.com>2024-06-26 16:35:42 -0500
commit368cd7bb0e9bb92ee968f429c66f7db7bfb305e7 (patch)
treec4d4102bb57f939e7716976f3423c17f991e668c /src/screens/Onboarding/StepInterests/index.tsx
parentc4dce4ce450d734c674b2d1599e634a77d00f489 (diff)
downloadvoidsky-368cd7bb0e9bb92ee968f429c66f7db7bfb305e7.tar.zst
[D1X] Onboarding interest display names (#4657)
* Translate interest names in onboarding

* Add comment

* Do it the normal way
Diffstat (limited to 'src/screens/Onboarding/StepInterests/index.tsx')
-rw-r--r--src/screens/Onboarding/StepInterests/index.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/screens/Onboarding/StepInterests/index.tsx b/src/screens/Onboarding/StepInterests/index.tsx
index 866ea5c2f..ded473ff5 100644
--- a/src/screens/Onboarding/StepInterests/index.tsx
+++ b/src/screens/Onboarding/StepInterests/index.tsx
@@ -15,7 +15,11 @@ import {
   OnboardingControls,
   TitleText,
 } from '#/screens/Onboarding/Layout'
-import {ApiResponseMap, Context} from '#/screens/Onboarding/state'
+import {
+  ApiResponseMap,
+  Context,
+  useInterestsDisplayNames,
+} from '#/screens/Onboarding/state'
 import {InterestButton} from '#/screens/Onboarding/StepInterests/InterestButton'
 import {atoms as a, useBreakpoints, useTheme} from '#/alf'
 import {Button, ButtonIcon, ButtonText} from '#/components/Button'
@@ -33,8 +37,9 @@ export function StepInterests() {
   const t = useTheme()
   const {gtMobile} = useBreakpoints()
   const {track} = useAnalytics()
+  const interestsDisplayNames = useInterestsDisplayNames()
 
-  const {state, dispatch, interestsDisplayNames} = React.useContext(Context)
+  const {state, dispatch} = React.useContext(Context)
   const [saving, setSaving] = React.useState(false)
   const [interests, setInterests] = React.useState<string[]>(
     state.interestsStepResults.selectedInterests.map(i => i),