Cleanup
This commit is contained in:
@@ -3,7 +3,6 @@ import {ActivityIndicator, View} from 'react-native'
|
|||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {AppBskyFeedGetLikes as GetLikes} from '@atproto/api'
|
import {AppBskyFeedGetLikes as GetLikes} from '@atproto/api'
|
||||||
import {BottomSheetFlatList} from '@gorhom/bottom-sheet'
|
|
||||||
|
|
||||||
import {useResolveUriQuery} from '#/state/queries/resolve-uri'
|
import {useResolveUriQuery} from '#/state/queries/resolve-uri'
|
||||||
import {useLikedByQuery} from '#/state/queries/post-liked-by'
|
import {useLikedByQuery} from '#/state/queries/post-liked-by'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import {
|
import {
|
||||||
ModerationCause,
|
ModerationCause,
|
||||||
ModerationUI,
|
ModerationUI,
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export function getDefinition(
|
|||||||
// check local definitions
|
// check local definitions
|
||||||
const customDef =
|
const customDef =
|
||||||
!label.val.startsWith('!') &&
|
!label.val.startsWith('!') &&
|
||||||
labelDefs[label.src].find(
|
labelDefs[label.src]?.find(
|
||||||
def => def.identifier === label.val && def.definedBy === label.src,
|
def => def.identifier === label.val && def.definedBy === label.src,
|
||||||
)
|
)
|
||||||
if (customDef) {
|
if (customDef) {
|
||||||
|
|||||||
@@ -1,15 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
ComAtprotoLabelDefs,
|
|
||||||
AppBskyLabelerDefs,
|
|
||||||
DEFAULT_LABEL_SETTINGS,
|
DEFAULT_LABEL_SETTINGS,
|
||||||
LABELS,
|
|
||||||
BSKY_LABELER_DID,
|
BSKY_LABELER_DID,
|
||||||
interpretLabelValueDefinition,
|
|
||||||
interpretLabelValueDefinitions,
|
interpretLabelValueDefinitions,
|
||||||
InterprettedLabelValueDefinition,
|
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {useLingui} from '@lingui/react'
|
|
||||||
import * as bcp47Match from 'bcp-47-match'
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
LabelGroup,
|
LabelGroup,
|
||||||
@@ -17,10 +10,6 @@ import {
|
|||||||
} from '#/state/queries/preferences/types'
|
} from '#/state/queries/preferences/types'
|
||||||
import {usePreferencesQuery} from './index'
|
import {usePreferencesQuery} from './index'
|
||||||
import {useLabelersDetailedInfoQuery} from '../labeler'
|
import {useLabelersDetailedInfoQuery} from '../labeler'
|
||||||
import {
|
|
||||||
useGlobalLabelStrings,
|
|
||||||
GlobalLabelStrings,
|
|
||||||
} from '#/lib/moderation/useGlobalLabelStrings'
|
|
||||||
|
|
||||||
export type LabelGroupConfig = {
|
export type LabelGroupConfig = {
|
||||||
id: LabelGroup
|
id: LabelGroup
|
||||||
|
|||||||
Reference in New Issue
Block a user