Merge branch '3p-moderators' of github.com:bluesky-social/social-app into 3p-moderators
This commit is contained in:
@@ -15,7 +15,6 @@ import {getLabelStrings} from '#/lib/moderation/useLabelInfo'
|
|||||||
import {useTheme, atoms as a} from '#/alf'
|
import {useTheme, atoms as a} from '#/alf'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import {InlineLink} from '#/components/Link'
|
import {InlineLink} from '#/components/Link'
|
||||||
import * as Dialog from '#/components/Dialog'
|
|
||||||
import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '../icons/CircleInfo'
|
import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '../icons/CircleInfo'
|
||||||
import * as ToggleButton from '#/components/forms/ToggleButton'
|
import * as ToggleButton from '#/components/forms/ToggleButton'
|
||||||
|
|
||||||
@@ -30,7 +29,6 @@ export function ModerationLabelPref({
|
|||||||
}) {
|
}) {
|
||||||
const {_, i18n} = useLingui()
|
const {_, i18n} = useLingui()
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const control = Dialog.useDialogControl()
|
|
||||||
|
|
||||||
const isGlobalLabel = !labelValueDefinition.definedBy
|
const isGlobalLabel = !labelValueDefinition.definedBy
|
||||||
const {identifier} = labelValueDefinition
|
const {identifier} = labelValueDefinition
|
||||||
@@ -96,16 +94,14 @@ export function ModerationLabelPref({
|
|||||||
<View style={[a.flex_row, a.gap_xs, a.align_center, a.mt_xs]}>
|
<View style={[a.flex_row, a.gap_xs, a.align_center, a.mt_xs]}>
|
||||||
<CircleInfo size="sm" fill={t.atoms.text_contrast_high.color} />
|
<CircleInfo size="sm" fill={t.atoms.text_contrast_high.color} />
|
||||||
|
|
||||||
<Text style={[t.atoms.text_contrast_high, a.font_semibold]}>
|
<Text
|
||||||
|
style={[t.atoms.text_contrast_medium, a.font_semibold, a.italic]}>
|
||||||
{adultDisabled ? (
|
{adultDisabled ? (
|
||||||
<Trans>Adult content is disabled.</Trans>
|
<Trans>Adult content is disabled.</Trans>
|
||||||
) : isGlobalLabel ? (
|
) : isGlobalLabel ? (
|
||||||
<Trans>
|
<Trans>
|
||||||
Configured in{' '}
|
Configured in{' '}
|
||||||
<InlineLink
|
<InlineLink to="/moderation" style={a.text_sm}>
|
||||||
to="/moderation"
|
|
||||||
onPress={() => control.close()}
|
|
||||||
style={a.text_sm}>
|
|
||||||
moderation settings
|
moderation settings
|
||||||
</InlineLink>
|
</InlineLink>
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user