typecheck
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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={() =>
|
||||
|
||||
Reference in New Issue
Block a user