Mark label for translation in LoggedOutCTA.tsx (#8908)
* Mark label for translation in `LoggedOutCTA.tsx` * Update LoggedOutCTA.tsx
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import {View, type ViewStyle} from 'react-native'
|
import {View, type ViewStyle} from 'react-native'
|
||||||
import {Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
import {type Gate} from '#/lib/statsig/gates'
|
import {type Gate} from '#/lib/statsig/gates'
|
||||||
import {useGate} from '#/lib/statsig/statsig'
|
import {useGate} from '#/lib/statsig/statsig'
|
||||||
@@ -21,6 +22,7 @@ export function LoggedOutCTA({style, gateName}: LoggedOutCTAProps) {
|
|||||||
const {requestSwitchToAccount} = useLoggedOutViewControls()
|
const {requestSwitchToAccount} = useLoggedOutViewControls()
|
||||||
const gate = useGate()
|
const gate = useGate()
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
|
const {_} = useLingui()
|
||||||
|
|
||||||
// Only show for logged-out users on web
|
// Only show for logged-out users on web
|
||||||
if (hasSession || !isWeb) {
|
if (hasSession || !isWeb) {
|
||||||
@@ -66,7 +68,7 @@ export function LoggedOutCTA({style, gateName}: LoggedOutCTAProps) {
|
|||||||
onPress={() => {
|
onPress={() => {
|
||||||
requestSwitchToAccount({requestedAccount: 'new'})
|
requestSwitchToAccount({requestedAccount: 'new'})
|
||||||
}}
|
}}
|
||||||
label="Create account"
|
label={_(msg`Create account`)}
|
||||||
size="small"
|
size="small"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
color="primary">
|
color="primary">
|
||||||
|
|||||||
Reference in New Issue
Block a user