Update to use new SDK appLabelers semantics

This commit is contained in:
Paul Frazee
2024-03-12 11:43:15 -07:00
parent 02f949781a
commit cad66269d3
4 changed files with 10 additions and 10 deletions
@@ -22,7 +22,7 @@ import {useLikeMutation, useUnlikeMutation} from '#/state/queries/like'
import {logger} from '#/logger'
import {Haptics} from '#/lib/haptics'
import {pluralize} from '#/lib/strings/helpers'
import {isModAuthority} from '#/lib/moderation'
import {isAppLabeler} from '#/lib/moderation'
import {atoms as a, useTheme} from '#/alf'
import {Button, ButtonText} from '#/components/Button'
@@ -174,7 +174,7 @@ let ProfileHeaderLabeler = ({
<Trans>Edit Profile</Trans>
</ButtonText>
</Button>
) : !isModAuthority(profile.did) ? (
) : !isAppLabeler(profile.did) ? (
<>
<Button
testID="toggleSubscribeBtn"
@@ -219,7 +219,7 @@ let ProfileHeaderLabeler = ({
/>
</View>
) : undefined}
{!isModAuthority(profile.did) && (
{!isAppLabeler(profile.did) && (
<View style={[a.flex_row, a.gap_xs, a.align_center, a.pt_lg]}>
<Button
testID="toggleLikeBtn"