From 0a1fad83324b08eb8ab61206bc005a70c0fe4c3f Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Sun, 10 Mar 2024 15:07:29 -0500 Subject: [PATCH] Tweaks --- src/components/moderation/ModerationLabelPref.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/components/moderation/ModerationLabelPref.tsx b/src/components/moderation/ModerationLabelPref.tsx index a43ee0aa2b..861a06ceed 100644 --- a/src/components/moderation/ModerationLabelPref.tsx +++ b/src/components/moderation/ModerationLabelPref.tsx @@ -15,7 +15,6 @@ import {getLabelStrings} from '#/lib/moderation/useLabelInfo' import {useTheme, atoms as a} from '#/alf' import {Text} from '#/components/Typography' import {InlineLink} from '#/components/Link' -import * as Dialog from '#/components/Dialog' import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '../icons/CircleInfo' import * as ToggleButton from '#/components/forms/ToggleButton' @@ -30,7 +29,6 @@ export function ModerationLabelPref({ }) { const {_, i18n} = useLingui() const t = useTheme() - const control = Dialog.useDialogControl() const isGlobalLabel = !labelValueDefinition.definedBy const {identifier} = labelValueDefinition @@ -96,16 +94,14 @@ export function ModerationLabelPref({ - + {adultDisabled ? ( Adult content is disabled. ) : isGlobalLabel ? ( Configured in{' '} - control.close()} - style={a.text_sm}> + moderation settings .