From 48d2b17fd6077b7bb81c5c015b79d8f31d2841c0 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 6 Jun 2024 23:36:10 -0700 Subject: [PATCH] update nav routes --- src/components/StarterPack/StarterPackCard.tsx | 11 ++++++++--- src/lib/routes/types.ts | 4 ++-- src/routes.ts | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/StarterPack/StarterPackCard.tsx b/src/components/StarterPack/StarterPackCard.tsx index 81909d40ef..23167541d3 100644 --- a/src/components/StarterPack/StarterPackCard.tsx +++ b/src/components/StarterPack/StarterPackCard.tsx @@ -1,6 +1,6 @@ import React from 'react' import {View} from 'react-native' -import {AppBskyGraphStarterpack} from '@atproto/api' +import {AppBskyGraphStarterpack, AtUri} from '@atproto/api' import {StarterPackViewBasic} from '@atproto/api/dist/client/types/app/bsky/graph/defs' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -26,14 +26,19 @@ export function StarterPackCard({ const {_} = useLingui() const t = useTheme() const {currentAccount} = useSession() - const {record, creator, joinedAllTimeCount} = starterPack + const {uri, record, creator, joinedAllTimeCount} = starterPack + const rkey = new AtUri(uri).rkey if (!AppBskyGraphStarterpack.isRecord(record)) { return null } return ( - +