Use namespace consts
This commit is contained in:
@@ -35,7 +35,7 @@ export function ListHiddenScreen({
|
|||||||
const isOwner = currentAccount?.did === list.creator.did
|
const isOwner = currentAccount?.did === list.creator.did
|
||||||
const goBack = useGoBack()
|
const goBack = useGoBack()
|
||||||
|
|
||||||
const isModList = list.purpose === 'app.bsky.graph.defs#modlist'
|
const isModList = list.purpose === AppBskyGraphDefs.MODLIST
|
||||||
|
|
||||||
const [isProcessing, setIsProcessing] = React.useState(false)
|
const [isProcessing, setIsProcessing] = React.useState(false)
|
||||||
const listBlockMutation = useListBlockMutation()
|
const listBlockMutation = useListBlockMutation()
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ function ProfileListScreenLoaded({
|
|||||||
const feedSectionRef = React.useRef<SectionRef>(null)
|
const feedSectionRef = React.useRef<SectionRef>(null)
|
||||||
const aboutSectionRef = React.useRef<SectionRef>(null)
|
const aboutSectionRef = React.useRef<SectionRef>(null)
|
||||||
const {openModal} = useModalControls()
|
const {openModal} = useModalControls()
|
||||||
const isCurateList = list.purpose === 'app.bsky.graph.defs#curatelist'
|
const isCurateList = list.purpose === AppBskyGraphDefs.CURATELIST
|
||||||
const isScreenFocused = useIsFocused()
|
const isScreenFocused = useIsFocused()
|
||||||
const isHidden = list.labels?.findIndex(l => l.val === '!hide') !== -1
|
const isHidden = list.labels?.findIndex(l => l.val === '!hide') !== -1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user