summaryrefslogtreecommitdiff
path: root/app/components/text-field/text-field.tsx
diff options
context:
space:
mode:
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}>