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
This commit is contained in:
Hailey 2024-01-31 14:14:37 -08:00 committed by GitHub
parent a4ff290769
commit 5db56277c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 130 additions and 101 deletions

View file

@ -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 =