diff options
Diffstat (limited to 'src/screens/Onboarding/StepInterests/InterestButton.tsx')
-rw-r--r-- | src/screens/Onboarding/StepInterests/InterestButton.tsx | 11 |
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(() => { |