More prefs cleanup (#1882)
* Update useHomeTabs * Use queryClient to fetch * Replace useHomeTabs and useDesktopRightNavItems * Fix type error * Some cleanup
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
BskyPreferences,
|
||||
LabelPreference,
|
||||
BskyThreadViewPreference,
|
||||
BskyFeedViewPreference,
|
||||
} from '@atproto/api'
|
||||
|
||||
export type ConfigurableLabelGroup =
|
||||
@@ -29,7 +30,9 @@ export type UsePreferencesQueryResponse = Omit<
|
||||
* we clean up the data in `usePreferencesQuery`.
|
||||
*/
|
||||
contentLabels: Record<ConfigurableLabelGroup, LabelPreference>
|
||||
feedViewPrefs: BskyPreferences['feedViewPrefs']['home']
|
||||
feedViewPrefs: BskyFeedViewPreference & {
|
||||
lab_mergeFeedEnabled: boolean
|
||||
}
|
||||
/**
|
||||
* User thread-view prefs, including newer fields that may not be typed yet.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user