Remove old onboarding (#4224)

* Hardcode onboarding_v2 to true, rm dead code

* Rm initialState, use initialStateReduced

* Rm dead code

* Drop *reduced prefix in code

* Prettier
This commit is contained in:
dan 2024-05-28 16:56:06 +01:00 committed by GitHub
parent 9bd411c151
commit adbbded003
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 27 additions and 1986 deletions

View file

@ -2,7 +2,6 @@ import React from 'react'
import {LogBox, Pressable, View} from 'react-native'
import {useQueryClient} from '@tanstack/react-query'
import {useDangerousSetGate} from '#/lib/statsig/statsig'
import {useModalControls} from '#/state/modals'
import {useSessionApi} from '#/state/session'
import {useLoggedOutViewControls} from '#/state/shell/logged-out'
@ -25,7 +24,6 @@ export function TestCtrls() {
const {openModal} = useModalControls()
const onboardingDispatch = useOnboardingDispatch()
const {setShowLoggedOut} = useLoggedOutViewControls()
const setGate = useDangerousSetGate()
const onPressSignInAlice = async () => {
await login(
{
@ -117,8 +115,6 @@ export function TestCtrls() {
<Pressable
testID="e2eStartOnboarding"
onPress={() => {
// TODO remove when experiment is over
setGate('reduced_onboarding_and_home_algo_v2', true)
onboardingDispatch({type: 'start'})
}}
accessibilityRole="button"
@ -128,8 +124,6 @@ export function TestCtrls() {
<Pressable
testID="e2eStartLongboarding"
onPress={() => {
// TODO remove when experiment is over
setGate('reduced_onboarding_and_home_algo_v2', false)
onboardingDispatch({type: 'start'})
}}
accessibilityRole="button"