Remove unnecessary Trans tags (#3888)
parent
7d72dfb1cb
commit
c6d30f671a
|
@ -2,7 +2,7 @@ import React from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {AppBskyActorDefs, moderateProfile, ModerationOpts} from '@atproto/api'
|
import {AppBskyActorDefs, moderateProfile, ModerationOpts} from '@atproto/api'
|
||||||
import {flip, offset, shift, size, useFloating} from '@floating-ui/react-dom'
|
import {flip, offset, shift, size, useFloating} from '@floating-ui/react-dom'
|
||||||
import {msg, plural, Trans} from '@lingui/macro'
|
import {msg, plural} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
import {makeProfileLink} from '#/lib/routes/links'
|
import {makeProfileLink} from '#/lib/routes/links'
|
||||||
|
@ -444,12 +444,10 @@ function Inner({
|
||||||
label={`${followers} ${pluralizedFollowers}`}
|
label={`${followers} ${pluralizedFollowers}`}
|
||||||
style={[t.atoms.text]}
|
style={[t.atoms.text]}
|
||||||
onPress={hide}>
|
onPress={hide}>
|
||||||
<Trans>
|
<Text style={[a.text_md, a.font_bold]}>{followers} </Text>
|
||||||
<Text style={[a.text_md, a.font_bold]}>{followers} </Text>
|
<Text style={[t.atoms.text_contrast_medium]}>
|
||||||
<Text style={[t.atoms.text_contrast_medium]}>
|
{pluralizedFollowers}
|
||||||
{pluralizedFollowers}
|
</Text>
|
||||||
</Text>
|
|
||||||
</Trans>
|
|
||||||
</InlineLinkText>
|
</InlineLinkText>
|
||||||
<InlineLinkText
|
<InlineLinkText
|
||||||
to={makeProfileLink(profile, 'follows')}
|
to={makeProfileLink(profile, 'follows')}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import {AppBskyActorDefs} from '@atproto/api'
|
import {AppBskyActorDefs} from '@atproto/api'
|
||||||
import {msg, plural, Trans} from '@lingui/macro'
|
import {msg, plural} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
import {Shadow} from '#/state/cache/types'
|
import {Shadow} from '#/state/cache/types'
|
||||||
|
@ -38,12 +38,10 @@ export function ProfileHeaderMetrics({
|
||||||
style={[a.flex_row, t.atoms.text]}
|
style={[a.flex_row, t.atoms.text]}
|
||||||
to={makeProfileLink(profile, 'followers')}
|
to={makeProfileLink(profile, 'followers')}
|
||||||
label={`${followers} ${pluralizedFollowers}`}>
|
label={`${followers} ${pluralizedFollowers}`}>
|
||||||
<Trans>
|
<Text style={[a.font_bold, a.text_md]}>{followers} </Text>
|
||||||
<Text style={[a.font_bold, a.text_md]}>{followers} </Text>
|
<Text style={[t.atoms.text_contrast_medium, a.text_md]}>
|
||||||
<Text style={[t.atoms.text_contrast_medium, a.text_md]}>
|
{pluralizedFollowers}
|
||||||
{pluralizedFollowers}
|
</Text>
|
||||||
</Text>
|
|
||||||
</Trans>
|
|
||||||
</InlineLinkText>
|
</InlineLinkText>
|
||||||
<InlineLinkText
|
<InlineLinkText
|
||||||
testID="profileHeaderFollowsButton"
|
testID="profileHeaderFollowsButton"
|
||||||
|
|
Loading…
Reference in New Issue