Use namespace consts

This commit is contained in:
Eric Bailey
2024-08-20 16:50:33 -05:00
parent 18799e74b9
commit e58bd12cc3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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