Fix lint errors

This commit is contained in:
Eric Bailey
2024-03-07 13:00:03 -06:00
parent a2db4d6098
commit 7d80e5db54
6 changed files with 11 additions and 21 deletions
-8
View File
@@ -33,7 +33,6 @@ import {countLines} from 'lib/strings/helpers'
import {useComposerControls} from '#/state/shell/composer'
import {Shadow, usePostShadow, POST_TOMBSTONE} from '#/state/cache/post-shadow'
import {FeedNameText} from '../util/FeedInfoText'
import {useSession} from '#/state/session'
import {Trans, msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {atoms as a} from '#/alf'
@@ -106,17 +105,10 @@ let FeedItemInner = ({
const {openComposer} = useComposerControls()
const pal = usePalette('default')
const {_} = useLingui()
const {currentAccount} = useSession()
const href = useMemo(() => {
const urip = new AtUri(post.uri)
return makeProfileLink(post.author, 'post', urip.rkey)
}, [post.uri, post.author])
const isModeratedPost = !!moderation.causes.find(
cause =>
cause?.type === 'label' &&
cause.label.src !== currentAccount?.did &&
cause.label.uri === post.uri,
)
const replyAuthorDid = useMemo(() => {
if (!record?.reply) {
+3 -2
View File
@@ -243,7 +243,9 @@ export const DebugModScreen = ({}: NativeStackScreenProps<
],
},
labelDefs: {
'did:plc:fake-labeler': [interpretLabelValueDefinition(customLabelDef, 'did:plc:fake-labeler')],
'did:plc:fake-labeler': [
interpretLabelValueDefinition(customLabelDef, 'did:plc:fake-labeler'),
],
},
}
}, [label, visibility, noAdult, isLoggedOut, isTargetMe, did, customLabelDef])
@@ -703,7 +705,6 @@ function SmallToggler({
label,
children,
}: React.PropsWithChildren<{label: string}>) {
const t = useTheme()
const [show, setShow] = React.useState(false)
return (
<View>