typecheck
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {Keyboard, TouchableOpacity, View} from 'react-native'
|
import {Keyboard, TouchableOpacity, View} from 'react-native'
|
||||||
import {KeyboardAwareScrollView} from 'react-native-keyboard-controller'
|
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 {GeneratorView} from '@atproto/api/dist/client/types/app/bsky/feed/defs'
|
||||||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
||||||
import {msg, Plural, Trans} from '@lingui/macro'
|
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) {
|
} catch (e) {
|
||||||
// TODO add error to state
|
// TODO add error to state
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|||||||
@@ -896,7 +896,10 @@ export function SettingsScreen({}: Props) {
|
|||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={[pal.view, styles.linkCardNoIcon]}
|
style={[pal.view, styles.linkCardNoIcon]}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
navigation.navigate('StarterPack', {id: '123'})
|
navigation.navigate('StarterPack', {
|
||||||
|
name: 'alice.test',
|
||||||
|
rkey: '1234567',
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel={_(msg`Navigate to Starter Pack`)}
|
accessibilityLabel={_(msg`Navigate to Starter Pack`)}
|
||||||
@@ -905,18 +908,6 @@ export function SettingsScreen({}: Props) {
|
|||||||
<Trans>Navigate to Starter Pack</Trans>
|
<Trans>Navigate to Starter Pack</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</TouchableOpacity>
|
</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
|
<TouchableOpacity
|
||||||
style={[pal.view, styles.linkCardNoIcon]}
|
style={[pal.view, styles.linkCardNoIcon]}
|
||||||
onPress={() =>
|
onPress={() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user