Update saved feeds to use preferences

This commit is contained in:
Paul Frazee 2023-05-18 14:39:04 -05:00
parent acea0e074d
commit 5537d19e55
8 changed files with 68 additions and 50 deletions

View file

@ -121,7 +121,7 @@ const Container = observer(
}: {
children: React.ReactNode
hideOnScroll: boolean
showBorder: boolean
showBorder?: boolean
}) => {
const store = useStores()
const pal = usePalette('default')

View file

@ -27,6 +27,10 @@ export function ImageHider({
setOverride(false)
}, [setOverride])
if (moderation.behavior === ModerationBehaviorCode.Hide) {
return null
}
if (moderation.behavior !== ModerationBehaviorCode.WarnImages) {
return (
<View testID={testID} style={style}>
@ -35,10 +39,6 @@ export function ImageHider({
)
}
if (moderation.behavior === ModerationBehaviorCode.Hide) {
return null
}
return (
<View style={[styles.container, containerStyle]}>
<View testID={testID} style={style}>