Cleanup
This commit is contained in:
@@ -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,4 +1,3 @@
|
||||
import React from 'react'
|
||||
import {
|
||||
ModerationCause,
|
||||
ModerationUI,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user