summaryrefslogtreecommitdiff
path: root/app/components/text-field/text-field.tsx
diff options
context:
space:
mode:
authorKirill Rogovoy <[email protected]>2021-07-19 20:06:08 +0300
committerKirill Rogovoy <[email protected]>2021-07-19 20:06:08 +0300
commitf0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (patch)
tree575c0ff2cbb846252bd2e494c81c396846aab2f6 /app/components/text-field/text-field.tsx
parent67ad38d0a7cd319623e9f41c0c381ed5c5f6f973 (diff)
Apply Prettier
Diffstat (limited to 'app/components/text-field/text-field.tsx')
-rw-r--r--app/components/text-field/text-field.tsx23
1 files changed, 16 insertions, 7 deletions
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 (
<View style={containerStyles}>