diff options
Diffstat (limited to 'app/components/text/text.tsx')
-rw-r--r-- | app/components/text/text.tsx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/app/components/text/text.tsx b/app/components/text/text.tsx index 3ea613b..b04b654 100644 --- a/app/components/text/text.tsx +++ b/app/components/text/text.tsx @@ -1,8 +1,8 @@ -import * as React from "react" -import { Text as ReactNativeText } from "react-native" -import { presets } from "./text.presets" -import { TextProps } from "./text.props" -import { translate } from "../../i18n" +import * as React from 'react' +import { Text as ReactNativeText } from 'react-native' +import { presets } from './text.presets' +import { TextProps } from './text.props' +import { translate } from '../../i18n' /** * For your text displaying needs. @@ -11,7 +11,15 @@ import { translate } from "../../i18n" */ export function Text(props: TextProps) { // grab the props - const { preset = "default", tx, txOptions, text, children, style: styleOverride, ...rest } = props + const { + preset = 'default', + tx, + txOptions, + text, + children, + style: styleOverride, + ...rest + } = props // figure out which content to use const i18nText = tx && translate(tx, txOptions) |