This commit is contained in:
Paul Frazee
2024-03-05 21:18:07 -08:00
parent 019cc9dd7e
commit 5100c6b93b
4 changed files with 1 additions and 14 deletions
-1
View File
@@ -3,7 +3,6 @@ import {ActivityIndicator, View} from 'react-native'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {AppBskyFeedGetLikes as GetLikes} from '@atproto/api'
import {BottomSheetFlatList} from '@gorhom/bottom-sheet'
import {useResolveUriQuery} from '#/state/queries/resolve-uri'
import {useLikedByQuery} from '#/state/queries/post-liked-by'
-1
View File
@@ -1,4 +1,3 @@
import React from 'react'
import {
ModerationCause,
ModerationUI,
+1 -1
View File
@@ -41,7 +41,7 @@ export function getDefinition(
// check local definitions
const customDef =
!label.val.startsWith('!') &&
labelDefs[label.src].find(
labelDefs[label.src]?.find(
def => def.identifier === label.val && def.definedBy === label.src,
)
if (customDef) {
@@ -1,15 +1,8 @@
import {
ComAtprotoLabelDefs,
AppBskyLabelerDefs,
DEFAULT_LABEL_SETTINGS,
LABELS,
BSKY_LABELER_DID,
interpretLabelValueDefinition,
interpretLabelValueDefinitions,
InterprettedLabelValueDefinition,
} from '@atproto/api'
import {useLingui} from '@lingui/react'
import * as bcp47Match from 'bcp-47-match'
import {
LabelGroup,
@@ -17,10 +10,6 @@ import {
} from '#/state/queries/preferences/types'
import {usePreferencesQuery} from './index'
import {useLabelersDetailedInfoQuery} from '../labeler'
import {
useGlobalLabelStrings,
GlobalLabelStrings,
} from '#/lib/moderation/useGlobalLabelStrings'
export type LabelGroupConfig = {
id: LabelGroup