Upgrade prettier to 3.6 (#8558)

* upgrade prettier

* run prettier

* more files
This commit is contained in:
Samuel Newman
2025-06-23 17:44:40 +03:00
committed by GitHub
parent 3c92714e4e
commit c634cd9071
60 changed files with 427 additions and 383 deletions
+2 -3
View File
@@ -36,9 +36,8 @@ export function useNotificationSettingsUpdateMutation() {
mutationFn: async (
update: Partial<AppBskyNotificationDefs.Preferences>,
) => {
const response = await agent.app.bsky.notification.putPreferencesV2(
update,
)
const response =
await agent.app.bsky.notification.putPreferencesV2(update)
return response.data.preferences
},
onMutate: update => {
+5 -5
View File
@@ -14,7 +14,7 @@ import {useAgent, useSession} from '#/state/session'
import {useModerationOpts} from '../../preferences/moderation-opts'
import {truncateAndInvalidate} from '../util'
import {RQKEY as RQKEY_NOTIFS} from './feed'
import {CachedFeedPage, FeedPage} from './types'
import {type CachedFeedPage, type FeedPage} from './types'
import {fetchPage} from './util'
const UPDATE_INTERVAL = 30 * 1e3 // 30sec
@@ -94,8 +94,8 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
data.event === '30+'
? 30
: data.event === ''
? 0
: parseInt(data.event, 10) || 1,
? 0
: parseInt(data.event, 10) || 1,
}
setNumUnread(data.event)
}
@@ -164,8 +164,8 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
unreadCount >= 30
? '30+'
: unreadCount === 0
? ''
: String(unreadCount)
? ''
: String(unreadCount)
// track last sync
const now = new Date()