diff options
author | Hailey <me@haileyok.com> | 2024-01-31 14:14:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 14:14:37 -0800 |
commit | 5db56277c05c6c8a6357f0e463d893baabd80b03 (patch) | |
tree | 0266bd50dd232dc16e1cc7029cf286c8aad7bd57 /src/state/queries | |
parent | a4ff29076993401935ac65c47b4d284c6c6d16fe (diff) | |
download | voidsky-5db56277c05c6c8a6357f0e463d893baabd80b03.tar.zst |
Onboarding moderation improvements (#2713)
* create separate label group arrays * render adult and other label groups separately * animate in/out the additional settings * improve toggle logic * support animations on all platforms * remove debug * update notice, prevent running animations on mount * reorg imports
Diffstat (limited to 'src/state/queries')
-rw-r--r-- | src/state/queries/preferences/types.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/state/queries/preferences/types.ts b/src/state/queries/preferences/types.ts index cd9a2e8f9..45c9eed7d 100644 --- a/src/state/queries/preferences/types.ts +++ b/src/state/queries/preferences/types.ts @@ -5,15 +5,23 @@ import { BskyFeedViewPreference, } from '@atproto/api' -export const configurableLabelGroups = [ +export const configurableAdultLabelGroups = [ 'nsfw', 'nudity', 'suggestive', 'gore', +] as const + +export const configurableOtherLabelGroups = [ 'hate', 'spam', 'impersonation', ] as const + +export const configurableLabelGroups = [ + ...configurableAdultLabelGroups, + ...configurableOtherLabelGroups, +] as const export type ConfigurableLabelGroup = (typeof configurableLabelGroups)[number] export type LabelGroup = |