Skip to content

Commit

Permalink
fix: rollback formtextinput
Browse files Browse the repository at this point in the history
  • Loading branch information
OtavioStasiak committed Dec 6, 2024
1 parent 6659c8c commit 70796e6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/containers/TextInput/FormTextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import sharedStyles from '../../views/Styles';
import ActivityIndicator from '../ActivityIndicator';
import { CustomIcon, TIconsName } from '../CustomIcon';
import { TextInput } from './TextInput';
import { themes } from '../../lib/constants';

const styles = StyleSheet.create({
error: {
Expand All @@ -22,7 +21,7 @@ const styles = StyleSheet.create({
},
label: {
fontSize: 16,
lineHeight: 24,
lineHeight: 22,
...sharedStyles.textMedium
},
required: {
Expand All @@ -36,7 +35,7 @@ const styles = StyleSheet.create({
paddingHorizontal: 16,
paddingVertical: 10,
borderWidth: 1,
borderRadius: 4
borderRadius: 2
},
inputIconLeft: {
paddingLeft: 45
Expand Down Expand Up @@ -94,7 +93,7 @@ export const FormTextInput = ({
accessibilityLabel,
...inputProps
}: IRCTextInputProps): React.ReactElement => {
const { colors, theme } = useTheme();
const { colors } = useTheme();
const [showPassword, setShowPassword] = useState(false);
const showClearInput = onClearInput && value && value.length > 0;
const Input = bottomSheet ? BottomSheetTextInput : TextInput;
Expand All @@ -118,7 +117,7 @@ export const FormTextInput = ({
(secureTextEntry || iconRight || showClearInput) && styles.inputIconRight,
{
backgroundColor: colors.surfaceRoom,
borderColor: themes[theme].strokeMedium,
borderColor: colors.strokeLight,
color: colors.fontTitlesLabels
},
error?.error && {
Expand Down

0 comments on commit 70796e6

Please sign in to comment.