From f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Mon, 19 Jul 2021 20:06:08 +0300 Subject: Apply Prettier --- app/components/text/text.tsx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'app/components/text/text.tsx') 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) -- cgit v1.2.3