From e58bd12cc3a9e3bdaefae32d51228c87b07b1ad3 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 20 Aug 2024 16:50:33 -0500 Subject: [PATCH] Use namespace consts --- src/screens/List/ListHiddenScreen.tsx | 2 +- src/view/screens/ProfileList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/List/ListHiddenScreen.tsx b/src/screens/List/ListHiddenScreen.tsx index c93a6cc4e1..2f2ea582a7 100644 --- a/src/screens/List/ListHiddenScreen.tsx +++ b/src/screens/List/ListHiddenScreen.tsx @@ -35,7 +35,7 @@ export function ListHiddenScreen({ const isOwner = currentAccount?.did === list.creator.did 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 listBlockMutation = useListBlockMutation() diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx index 727ab4b6dd..c0489c9fd9 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -146,7 +146,7 @@ function ProfileListScreenLoaded({ const feedSectionRef = React.useRef(null) const aboutSectionRef = React.useRef(null) const {openModal} = useModalControls() - const isCurateList = list.purpose === 'app.bsky.graph.defs#curatelist' + const isCurateList = list.purpose === AppBskyGraphDefs.CURATELIST const isScreenFocused = useIsFocused() const isHidden = list.labels?.findIndex(l => l.val === '!hide') !== -1