diff options
author | Eric Bailey <git@esb.lol> | 2024-09-20 14:16:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 14:16:23 -0500 |
commit | c85a271ef63ac006bf10f71adae102552298b661 (patch) | |
tree | bdd21bf99a700904dd949bdf02d66ba5cfa0dc98 /src/components | |
parent | 395edfe78f748b199be6417e9a2aac1482ac9bdc (diff) | |
download | voidsky-c85a271ef63ac006bf10f71adae102552298b661.tar.zst |
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
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/LabelingServiceCard/index.tsx | 28 |
1 files changed, 24 insertions, 4 deletions
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 <Text style={[a.text_md, a.font_bold]}>{value}</Text> + return <Text style={[a.text_md, a.font_bold, a.leading_tight]}>{value}</Text> } export function Description({value, handle}: {value?: string; handle: string}) { return value ? ( <Text numberOfLines={2}> - <RichText value={value} style={[]} /> + <RichText value={value} style={[a.leading_snug]} /> </Text> ) : ( - <Text> + <Text style={[a.leading_snug]}> <Trans>By {sanitizeHandle(handle, '@')}</Trans> </Text> ) } +export function RegionalNotice() { + const t = useTheme() + return ( + <View + style={[ + a.flex_row, + a.align_center, + a.gap_xs, + a.pt_2xs, + {marginLeft: -2}, + ]}> + <Flag fill={t.atoms.text_contrast_low.color} size="sm" /> + <Text style={[a.italic, a.leading_snug]}> + <Trans>Required in your region</Trans> + </Text> + </View> + ) +} + 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, ]}> - <View style={[a.gap_xs, a.flex_1]}>{children}</View> + <View style={[a.gap_2xs, a.flex_1]}>{children}</View> <ChevronRight size="md" style={[a.z_10, t.atoms.text_contrast_low]} /> </View> |