fix lint errors

zio/stable
Ansh Nanda 2023-05-24 15:00:36 -07:00
parent 04468eb1b7
commit 7e555ecc1b
2 changed files with 10 additions and 4 deletions

View File

@ -102,13 +102,15 @@ export async function DEFAULT_FEEDS(
serviceUrl: string,
resolveHandle: (name: string) => Promise<string>,
) {
if (serviceUrl.includes('localhost')) { // local dev
if (serviceUrl.includes('localhost')) {
// local dev
const aliceDid = await resolveHandle('alice.test')
return {
pinned: [`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 {
pinned: [STAGING_DEFAULT_FEED('whats-hot')],
saved: [
@ -118,7 +120,8 @@ export async function DEFAULT_FEEDS(
STAGING_DEFAULT_FEED('hot-classic'),
],
}
} else { // production
} else {
// production
return {
pinned: [PROD_DEFAULT_FEED('whats-hot')],
saved: [

View File

@ -98,7 +98,10 @@ export const NotificationsScreen = withAuthRequired(
/>
{store.me.notifications.hasNewLatest &&
!store.me.notifications.isRefreshing && (
<LoadLatestBtn onPress={onPressLoadLatest} label="Load new notifications" />
<LoadLatestBtn
onPress={onPressLoadLatest}
label="Load new notifications"
/>
)}
</View>
)