Skip to content

Commit 811d8b2

Browse files
committed
fix universal link
1 parent c6b983b commit 811d8b2

File tree

8 files changed

+7
-8
lines changed

8 files changed

+7
-8
lines changed

mobile/app/(app)/home/home.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function Page() {
5555
}
5656

5757
const navigateToAddKey = () => {
58-
route.push('/(vault)')
58+
route.push('/vault')
5959
}
6060

6161
const onBookmarkPress = (keyInfo: Vault) => async () => {
@@ -119,7 +119,6 @@ export default function Page() {
119119
/>
120120
)}
121121
keyExtractor={(item) => item.keyInfo.name}
122-
ListEmptyComponent={vaults?.length === 0 ? <ShowModal onConfirm={navigateToAddKey} /> : null}
123122
/>
124123
)}
125124
</BodyAlignedBotton>

mobile/app/(app)/(vault)/index.tsx renamed to mobile/app/(app)/vault/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ export default function Page() {
2424
<ActionItem
2525
title="Create a personal vault"
2626
subtitle="Quick and easy to set up"
27-
onPress={() => router.navigate('/(vault)/new-vault')}
27+
onPress={() => router.navigate('/vault/new-vault')}
2828
/>
2929
<Ruller />
3030
<ActionItem
3131
title="Import a wallet."
3232
subtitle="Recover a wallet you previously used."
33-
onPress={() => router.navigate('/(vault)/recovery-options')}
33+
onPress={() => router.navigate('/vault/recovery-options')}
3434
/>
3535
<Ruller />
3636
</Layout.Body>

mobile/app/(app)/(vault)/new-vault/index.tsx renamed to mobile/app/(app)/vault/new-vault/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default function Page() {
9292
}
9393
if (signUpState === VaultCreationState.account_created && newAccount) {
9494
dispatch(resetState())
95-
router.replace({ pathname: '(vault)/new-vault/new-vault-sucess' })
95+
router.replace({ pathname: 'vault/new-vault/new-vault-sucess' })
9696
}
9797
})()
9898
}, [signUpState, newAccount, dispatch])

mobile/app/(app)/(vault)/option-phrase/enter-phrase.tsx renamed to mobile/app/(app)/vault/option-phrase/enter-phrase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function Page() {
4848
Paste
4949
</Button>
5050
<Spacer />
51-
<Button color="primary" onPress={() => route.push('/(vault)/option-phrase/enter-vault-name')}>
51+
<Button color="primary" onPress={() => route.push('/vault/option-phrase/enter-vault-name')}>
5252
Continue
5353
</Button>
5454
</ScrollView>

mobile/app/(app)/(vault)/option-phrase/enter-vault-name.tsx renamed to mobile/app/(app)/vault/option-phrase/enter-vault-name.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Page() {
1111
// if (!password) throw new Error('No password found')
1212
try {
1313
// await dispatch(addVault({ name: vaultName, password, phrase: seed })).unwrap()
14-
router.replace({ pathname: '(vault)/new-vault/new-vault-sucess' })
14+
router.replace({ pathname: 'vault/new-vault/new-vault-sucess' })
1515
// route.push('/home')_
1616
} catch (error) {
1717
console.error('Error importing vault:', error)

mobile/app/(app)/(vault)/recovery-options.tsx renamed to mobile/app/(app)/vault/recovery-options.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Page() {
1818
<ActionItem
1919
title="Enter recovery phrase"
2020
subtitle="A combination of 12 to 24 words"
21-
onPress={() => route.navigate('(vault)/option-phrase/enter-phrase')}
21+
onPress={() => route.navigate('vault/option-phrase/enter-phrase')}
2222
iconLeft={<Fontisto name="nav-icon-grid" size={18} color="black" />}
2323
/>
2424
<Ruller />

0 commit comments

Comments
 (0)