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-field/text-field.tsx | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'app/components/text-field/text-field.tsx') diff --git a/app/components/text-field/text-field.tsx b/app/components/text-field/text-field.tsx index eea1a70..4da1591 100644 --- a/app/components/text-field/text-field.tsx +++ b/app/components/text-field/text-field.tsx @@ -1,8 +1,15 @@ -import React from "react" -import { StyleProp, TextInput, TextInputProps, TextStyle, View, ViewStyle } from "react-native" -import { color, spacing, typography } from "../../theme" -import { translate, TxKeyPath } from "../../i18n" -import { Text } from "../text/text" +import React from 'react' +import { + StyleProp, + TextInput, + TextInputProps, + TextStyle, + View, + ViewStyle, +} from 'react-native' +import { color, spacing, typography } from '../../theme' +import { translate, TxKeyPath } from '../../i18n' +import { Text } from '../text/text' // the base styling for the container const CONTAINER: ViewStyle = { @@ -71,7 +78,7 @@ export function TextField(props: TextFieldProps) { placeholder, labelTx, label, - preset = "default", + preset = 'default', style: styleOverride, inputStyle: inputStyleOverride, forwardedRef, @@ -80,7 +87,9 @@ export function TextField(props: TextFieldProps) { const containerStyles = [CONTAINER, PRESETS[preset], styleOverride] const inputStyles = [INPUT, inputStyleOverride] - const actualPlaceholder = placeholderTx ? translate(placeholderTx) : placeholder + const actualPlaceholder = placeholderTx + ? translate(placeholderTx) + : placeholder return ( -- cgit v1.2.3