fix moderation issue
This commit is contained in:
@@ -615,7 +615,6 @@ function ModerationOverlay({
|
|||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.absolute,
|
a.absolute,
|
||||||
@@ -632,7 +631,7 @@ function ModerationOverlay({
|
|||||||
style={[a.absolute, a.inset_0]}
|
style={[a.absolute, a.inset_0]}
|
||||||
/>
|
/>
|
||||||
<Divider style={{borderColor: 'white'}} />
|
<Divider style={{borderColor: 'white'}} />
|
||||||
<View style={[]}>
|
<View>
|
||||||
<Button
|
<Button
|
||||||
label={_(msg`View details`)}
|
label={_(msg`View details`)}
|
||||||
onPress={() => {
|
onPress={() => {
|
||||||
@@ -707,7 +706,13 @@ function Overlay({
|
|||||||
}, [player])
|
}, [player])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Hider.Outer modui={moderation.ui('contentView')}>
|
<Hider.Outer
|
||||||
|
// HACK - Hider.Outer is not reactive, it sets it's initial state
|
||||||
|
// based on the modui but then doesn't update if it changes.
|
||||||
|
// TODO: Better fix - Hider.Outer should be reactive, and modui shouldn't
|
||||||
|
// even be changing here anyway (this overlay is conditional based on moderation) -sfn
|
||||||
|
key={moderation.ui('contentView').blurs[0] ? 'blur' : 'none'}
|
||||||
|
modui={moderation.ui('contentView')}>
|
||||||
<Hider.Mask>
|
<Hider.Mask>
|
||||||
<ModerationOverlay embed={embed} onPressShow={onPressShow} />
|
<ModerationOverlay embed={embed} onPressShow={onPressShow} />
|
||||||
</Hider.Mask>
|
</Hider.Mask>
|
||||||
|
|||||||
Reference in New Issue
Block a user