Compare commits

...

1 Commits

Author SHA1 Message Date
Eric Bailey a0e1b0258b Make notifications clickable 2025-04-21 11:40:46 -05:00
2 changed files with 10 additions and 6 deletions
+5 -3
View File
@@ -1,7 +1,7 @@
import {
AppBskyFeedDefs,
AppBskyGraphDefs,
AppBskyNotificationListNotifications,
type AppBskyFeedDefs,
type AppBskyGraphDefs,
type AppBskyNotificationListNotifications,
} from '@atproto/api'
export type NotificationType =
@@ -44,6 +44,8 @@ type OtherNotificationType =
| 'quote'
| 'follow'
| 'feedgen-like'
| 'verified'
| 'unverified'
| 'unknown'
type FeedNotificationBase = {
@@ -102,7 +102,11 @@ let NotificationFeedItem = ({
const urip = new AtUri(item.subjectUri)
return `/profile/${urip.host}/post/${urip.rkey}`
}
} else if (item.type === 'follow') {
} else if (
item.type === 'follow' ||
item.type === 'verified' ||
item.type === 'unverified'
) {
return makeProfileLink(item.notification.author)
} else if (item.type === 'reply') {
const urip = new AtUri(item.notification.uri)
@@ -390,7 +394,6 @@ let NotificationFeedItem = ({
<StarterPack width={30} gradient="sky" />
</View>
)
// @ts-ignore TODO
} else if (item.type === 'verified') {
a11yLabel = hasMultipleAuthors
? _(
@@ -416,7 +419,6 @@ let NotificationFeedItem = ({
<Trans>{firstAuthorLink} verified you</Trans>
)
icon = <VerifiedCheck size="xl" />
// @ts-ignore TODO
} else if (item.type === 'unverified') {
a11yLabel = hasMultipleAuthors
? _(