typecheck

This commit is contained in:
Hailey
2024-06-07 01:15:37 -07:00
parent 81ac943450
commit ce662afe15
2 changed files with 7 additions and 15 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
import React from 'react'
import {Keyboard, TouchableOpacity, View} from 'react-native'
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
import {AppBskyActorDefs} from '@atproto/api'
import {AppBskyActorDefs, AtUri} from '@atproto/api'
import {GeneratorView} from '@atproto/api/dist/client/types/app/bsky/feed/defs'
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
import {msg, Plural, Trans} from '@lingui/macro'
@@ -172,7 +172,8 @@ function WizardInner() {
},
)
navigation.replace('StarterPack', {id: res.uri})
const rkey = new AtUri(res.uri).rkey
navigation.replace('StarterPack', {name: currentAccount!.did, rkey})
} catch (e) {
// TODO add error to state
console.error(e)
+4 -13
View File
@@ -896,7 +896,10 @@ export function SettingsScreen({}: Props) {
<TouchableOpacity
style={[pal.view, styles.linkCardNoIcon]}
onPress={() => {
navigation.navigate('StarterPack', {id: '123'})
navigation.navigate('StarterPack', {
name: 'alice.test',
rkey: '1234567',
})
}}
accessibilityRole="button"
accessibilityLabel={_(msg`Navigate to Starter Pack`)}
@@ -905,18 +908,6 @@ export function SettingsScreen({}: Props) {
<Trans>Navigate to Starter Pack</Trans>
</Text>
</TouchableOpacity>
<TouchableOpacity
style={[pal.view, styles.linkCardNoIcon]}
onPress={() => {
navigation.navigate('StarterPackLanding', {id: '123'})
}}
accessibilityRole="button"
accessibilityLabel={_(msg`Navigate to Starter Pack Landing`)}
accessibilityHint={_(msg`Navigate to Starter Pack Landing`)}>
<Text type="lg" style={pal.text}>
<Trans>Navigate to Starter Pack Landing</Trans>
</Text>
</TouchableOpacity>
<TouchableOpacity
style={[pal.view, styles.linkCardNoIcon]}
onPress={() =>