Remove the like count from the subscribed labeler listing

This commit is contained in:
Paul Frazee
2024-03-13 17:20:07 -07:00
parent ef794018f4
commit e8adf03cd5
+19 -6
View File
@@ -26,6 +26,7 @@ import {
usePreferencesSetAdultContentMutation, usePreferencesSetAdultContentMutation,
} from '#/state/queries/preferences' } from '#/state/queries/preferences'
import {getLabelingServiceTitle} from '#/lib/moderation'
import {logger} from '#/logger' import {logger} from '#/logger'
import {useTheme, atoms as a, useBreakpoints, ViewStyleProp} from '#/alf' import {useTheme, atoms as a, useBreakpoints, ViewStyleProp} from '#/alf'
import {Divider} from '#/components/Divider' import {Divider} from '#/components/Divider'
@@ -386,14 +387,13 @@ export function ModerationScreenInner({
</View> </View>
) : ( ) : (
<View style={[a.rounded_sm, t.atoms.bg_contrast_25]}> <View style={[a.rounded_sm, t.atoms.bg_contrast_25]}>
{labelers.map((mod, i) => { {labelers.map((labeler, i) => {
return ( return (
<React.Fragment key={mod.creator.did}> <React.Fragment key={labeler.creator.did}>
{i !== 0 && <Divider />} {i !== 0 && <Divider />}
<LabelingService.Link labeler={mod}> <LabelingService.Link labeler={labeler}>
{state => ( {state => (
<LabelingService.Default <LabelingService.Outer
labeler={mod}
style={[ style={[
i === 0 && { i === 0 && {
borderTopLeftRadius: a.rounded_sm.borderRadius, borderTopLeftRadius: a.rounded_sm.borderRadius,
@@ -406,8 +406,21 @@ export function ModerationScreenInner({
(state.hovered || state.pressed) && [ (state.hovered || state.pressed) && [
t.atoms.bg_contrast_50, t.atoms.bg_contrast_50,
], ],
]} ]}>
<LabelingService.Avatar />
<LabelingService.Content>
<LabelingService.Title
value={getLabelingServiceTitle({
displayName: labeler.creator.displayName,
handle: labeler.creator.handle,
})}
/> />
<LabelingService.Description
value={labeler.creator.description}
handle={labeler.creator.handle}
/>
</LabelingService.Content>
</LabelingService.Outer>
)} )}
</LabelingService.Link> </LabelingService.Link>
</React.Fragment> </React.Fragment>