From c85a271ef63ac006bf10f71adae102552298b661 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 20 Sep 2024 14:16:23 -0500 Subject: Additional moderation (#5172) * Set up additional mod authorities * Filter out non-configurable mod authorities * WIP * Working * Cleanup, add mod * Cleanup * Add more debug logs * Tweak logs * Filter out imperative labels from typeaheads * Filter hideable content from notifications * Add api * Fall back in dev * Remove space * Use prod endpoint * Add tiny notice * Add notice to labeler card, show all labelers --- src/components/LabelingServiceCard/index.tsx | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'src/components/LabelingServiceCard/index.tsx') diff --git a/src/components/LabelingServiceCard/index.tsx b/src/components/LabelingServiceCard/index.tsx index 542f2d299..ff32c36bc 100644 --- a/src/components/LabelingServiceCard/index.tsx +++ b/src/components/LabelingServiceCard/index.tsx @@ -9,6 +9,7 @@ import {sanitizeHandle} from '#/lib/strings/handles' import {useLabelerInfoQuery} from '#/state/queries/labeler' import {UserAvatar} from '#/view/com/util/UserAvatar' import {atoms as a, useTheme, ViewStyleProp} from '#/alf' +import {Flag_Stroke2_Corner0_Rounded as Flag} from '#/components/icons/Flag' import {Link as InternalLink, LinkProps} from '#/components/Link' import {RichText} from '#/components/RichText' import {Text} from '#/components/Typography' @@ -43,21 +44,40 @@ export function Avatar({avatar}: {avatar?: string}) { } export function Title({value}: {value: string}) { - return {value} + return {value} } export function Description({value, handle}: {value?: string; handle: string}) { return value ? ( - + ) : ( - + By {sanitizeHandle(handle, '@')} ) } +export function RegionalNotice() { + const t = useTheme() + return ( + + + + Required in your region + + + ) +} + export function LikeCount({count}: {count: number}) { const t = useTheme() return ( @@ -85,7 +105,7 @@ export function Content({children}: React.PropsWithChildren<{}>) { a.align_center, a.justify_between, ]}> - {children} + {children} -- cgit 1.4.1