diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-19 20:06:08 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-19 20:06:08 +0300 |
commit | f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (patch) | |
tree | 575c0ff2cbb846252bd2e494c81c396846aab2f6 /app/components/text/text.tsx | |
parent | 67ad38d0a7cd319623e9f41c0c381ed5c5f6f973 (diff) |
Apply Prettier
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) |