about summary refs log tree commit diff
path: root/src/screens/Onboarding/StepInterests/InterestButton.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/InterestButton.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/InterestButton.tsx')
-rw-r--r--src/screens/Onboarding/StepInterests/InterestButton.tsx11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/screens/Onboarding/StepInterests/InterestButton.tsx b/src/screens/Onboarding/StepInterests/InterestButton.tsx
index cc692dafd..24b34041e 100644
--- a/src/screens/Onboarding/StepInterests/InterestButton.tsx
+++ b/src/screens/Onboarding/StepInterests/InterestButton.tsx
@@ -1,16 +1,15 @@
 import React from 'react'
-import {View, ViewStyle, TextStyle} from 'react-native'
+import {TextStyle, View, ViewStyle} from 'react-native'
 
-import {useTheme, atoms as a, native} from '#/alf'
+import {capitalize} from '#/lib/strings/capitalize'
+import {useInterestsDisplayNames} from '#/screens/Onboarding/state'
+import {atoms as a, native, useTheme} from '#/alf'
 import * as Toggle from '#/components/forms/Toggle'
 import {Text} from '#/components/Typography'
-import {capitalize} from '#/lib/strings/capitalize'
-
-import {Context} from '#/screens/Onboarding/state'
 
 export function InterestButton({interest}: {interest: string}) {
   const t = useTheme()
-  const {interestsDisplayNames} = React.useContext(Context)
+  const interestsDisplayNames = useInterestsDisplayNames()
   const ctx = Toggle.useItemContext()
 
   const styles = React.useMemo(() => {