More prefs cleanup (#1882)
* Update useHomeTabs * Use queryClient to fetch * Replace useHomeTabs and useDesktopRightNavItems * Fix type error * Some cleanup
This commit is contained in:
parent
37a2204483
commit
c3edde8ac6
12 changed files with 177 additions and 176 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue