Add disable autoplay preference and group related settings into a dedicated page (#3626)

* add autoplay preference

* group accessibility settings into a dedicated page

* fix gray background on web

* Put a11y first

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This commit is contained in:
Samuel Newman
2024-04-19 22:10:37 +01:00
committed by GitHub
parent ade2ea6172
commit 8b33ffdfb5
10 changed files with 263 additions and 82 deletions
+2
View File
@@ -60,6 +60,7 @@ export const schema = z.object({
lastSelectedHomeFeed: z.string().optional(),
pdsAddressHistory: z.array(z.string()).optional(),
disableHaptics: z.boolean().optional(),
disableAutoplay: z.boolean().optional(),
})
export type Schema = z.infer<typeof schema>
@@ -96,4 +97,5 @@ export const defaults: Schema = {
lastSelectedHomeFeed: undefined,
pdsAddressHistory: [],
disableHaptics: false,
disableAutoplay: false,
}