fix lint errors
parent
04468eb1b7
commit
7e555ecc1b
|
@ -102,13 +102,15 @@ export async function DEFAULT_FEEDS(
|
||||||
serviceUrl: string,
|
serviceUrl: string,
|
||||||
resolveHandle: (name: string) => Promise<string>,
|
resolveHandle: (name: string) => Promise<string>,
|
||||||
) {
|
) {
|
||||||
if (serviceUrl.includes('localhost')) { // local dev
|
if (serviceUrl.includes('localhost')) {
|
||||||
|
// local dev
|
||||||
const aliceDid = await resolveHandle('alice.test')
|
const aliceDid = await resolveHandle('alice.test')
|
||||||
return {
|
return {
|
||||||
pinned: [`at://${aliceDid}/app.bsky.feed.generator/alice-favs`],
|
pinned: [`at://${aliceDid}/app.bsky.feed.generator/alice-favs`],
|
||||||
saved: [`at://${aliceDid}/app.bsky.feed.generator/alice-favs`],
|
saved: [`at://${aliceDid}/app.bsky.feed.generator/alice-favs`],
|
||||||
}
|
}
|
||||||
} else if (serviceUrl.includes('staging')) { // staging
|
} else if (serviceUrl.includes('staging')) {
|
||||||
|
// staging
|
||||||
return {
|
return {
|
||||||
pinned: [STAGING_DEFAULT_FEED('whats-hot')],
|
pinned: [STAGING_DEFAULT_FEED('whats-hot')],
|
||||||
saved: [
|
saved: [
|
||||||
|
@ -118,7 +120,8 @@ export async function DEFAULT_FEEDS(
|
||||||
STAGING_DEFAULT_FEED('hot-classic'),
|
STAGING_DEFAULT_FEED('hot-classic'),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
} else { // production
|
} else {
|
||||||
|
// production
|
||||||
return {
|
return {
|
||||||
pinned: [PROD_DEFAULT_FEED('whats-hot')],
|
pinned: [PROD_DEFAULT_FEED('whats-hot')],
|
||||||
saved: [
|
saved: [
|
||||||
|
|
|
@ -98,7 +98,10 @@ export const NotificationsScreen = withAuthRequired(
|
||||||
/>
|
/>
|
||||||
{store.me.notifications.hasNewLatest &&
|
{store.me.notifications.hasNewLatest &&
|
||||||
!store.me.notifications.isRefreshing && (
|
!store.me.notifications.isRefreshing && (
|
||||||
<LoadLatestBtn onPress={onPressLoadLatest} label="Load new notifications" />
|
<LoadLatestBtn
|
||||||
|
onPress={onPressLoadLatest}
|
||||||
|
label="Load new notifications"
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue