File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { useShareSheet } from "app/Components/ShareSheet/ShareSheetContext"
8
8
import { LegacyNativeModules } from "app/NativeModules/LegacyNativeModules"
9
9
import { cm2in } from "app/utils/conversions"
10
10
import { useFeatureFlag } from "app/utils/hooks/useFeatureFlag"
11
- import { isDislikeArtworksEnabled } from "app/utils/isDislikeArtworksEnabled "
11
+ import { isDislikeArtworksEnabledFor } from "app/utils/isDislikeArtworksEnabledFor "
12
12
import { useDislikeArtwork } from "app/utils/mutations/useDislikeArtwork"
13
13
import { Schema } from "app/utils/track"
14
14
import { InteractionManager , Platform } from "react-native"
@@ -90,7 +90,7 @@ export const ContextMenuArtwork: React.FC<ContextMenuArtworkProps> = ({
90
90
const shouldDisplayContextMenu = isIOS && enableContextMenu
91
91
const enableCreateAlerts = ! ! artwork . artists ?. length
92
92
const enableViewInRoom = LegacyNativeModules . ARCocoaConstantsModule . AREnabled && isHangable
93
- const enableSupressArtwork = isDislikeArtworksEnabled ( contextModule )
93
+ const enableSupressArtwork = isDislikeArtworksEnabledFor ( contextModule )
94
94
95
95
const openViewInRoom = ( ) => {
96
96
if ( artwork ?. widthCm == null || artwork ?. heightCm == null || image ?. url == null ) {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import { useHomeViewTracking } from "app/Scenes/HomeView/hooks/useHomeViewTracki
24
24
import { navigate } from "app/system/navigation/navigate"
25
25
import { extractNodes } from "app/utils/extractNodes"
26
26
import { NoFallback , withSuspense } from "app/utils/hooks/withSuspense"
27
- import { isDislikeArtworksEnabled } from "app/utils/isDislikeArtworksEnabled "
27
+ import { isDislikeArtworksEnabledFor } from "app/utils/isDislikeArtworksEnabledFor "
28
28
import { useMemoizedRandom } from "app/utils/placeholders"
29
29
import { times } from "lodash"
30
30
import { memo } from "react"
@@ -45,7 +45,7 @@ export const HomeViewSectionArtworks: React.FC<HomeViewSectionArtworksProps> = (
45
45
const section = useFragment ( fragment , sectionProp )
46
46
let artworks = extractNodes ( section . artworksConnection )
47
47
48
- if ( isDislikeArtworksEnabled ( section . contextModule ) ) {
48
+ if ( isDislikeArtworksEnabledFor ( section . contextModule ) ) {
49
49
artworks = artworks . filter ( ( artwork ) => ! artwork . isDisliked )
50
50
}
51
51
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ const ENABLED_CONTEXT_MODULES = [
10
10
/**
11
11
* returns true if hiding disliked artworks is enabled for the given context module
12
12
*/
13
- export const isDislikeArtworksEnabled = ( contextModule : string | null | undefined ) => {
13
+ export const isDislikeArtworksEnabledFor = ( contextModule : string | null | undefined ) => {
14
14
return ENABLED_CONTEXT_MODULES . includes ( contextModule as ContextModule )
15
15
}
You can’t perform that action at this time.
0 commit comments