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:
parent
a4ff290769
commit
5db56277c0
4 changed files with 130 additions and 101 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue