Show 'learn more' on the content hider when no-override is enabled
This commit is contained in:
@@ -7,7 +7,7 @@ import {Text} from '../text/Text'
|
|||||||
import {ShieldExclamation} from 'lib/icons'
|
import {ShieldExclamation} from 'lib/icons'
|
||||||
import {describeModerationCause} from 'lib/moderation'
|
import {describeModerationCause} from 'lib/moderation'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {msg} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useModalControls} from '#/state/modals'
|
import {useModalControls} from '#/state/modals'
|
||||||
import {isPostMediaBlurred} from 'lib/moderation'
|
import {isPostMediaBlurred} from 'lib/moderation'
|
||||||
|
|
||||||
@@ -95,13 +95,17 @@ export function ContentHider({
|
|||||||
<Text type="md" style={pal.text}>
|
<Text type="md" style={pal.text}>
|
||||||
{desc.name}
|
{desc.name}
|
||||||
</Text>
|
</Text>
|
||||||
{!moderation.noOverride && (
|
<View style={styles.showBtn}>
|
||||||
<View style={styles.showBtn}>
|
<Text type="lg" style={pal.link}>
|
||||||
<Text type="lg" style={pal.link}>
|
{moderation.noOverride ? (
|
||||||
{override ? 'Hide' : 'Show'}
|
<Trans>Learn more</Trans>
|
||||||
</Text>
|
) : override ? (
|
||||||
</View>
|
<Trans>Hide</Trans>
|
||||||
)}
|
) : (
|
||||||
|
<Trans>Show</Trans>
|
||||||
|
)}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
</Pressable>
|
</Pressable>
|
||||||
{override && <View style={childContainerStyle}>{children}</View>}
|
{override && <View style={childContainerStyle}>{children}</View>}
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user