From c05cd40112ba0b9d0273b9524b63379bbb11b391 Mon Sep 17 00:00:00 2001 From: OtavioStasiak Date: Mon, 4 Nov 2024 20:37:03 -0300 Subject: [PATCH] chore: spaces changes --- app/containers/TextInput/FormTextInput.tsx | 2 +- app/views/ChangeAvatarView/index.tsx | 7 ++++--- app/views/ChangeAvatarView/styles.ts | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/containers/TextInput/FormTextInput.tsx b/app/containers/TextInput/FormTextInput.tsx index 7b90ec1a9d6..2dc4155546d 100644 --- a/app/containers/TextInput/FormTextInput.tsx +++ b/app/containers/TextInput/FormTextInput.tsx @@ -36,7 +36,7 @@ const styles = StyleSheet.create({ paddingHorizontal: 16, paddingVertical: 10, borderWidth: 1, - borderRadius: 2 + borderRadius: 4 }, inputIconLeft: { paddingLeft: 45 diff --git a/app/views/ChangeAvatarView/index.tsx b/app/views/ChangeAvatarView/index.tsx index 9313b6b013e..ee660916272 100644 --- a/app/views/ChangeAvatarView/index.tsx +++ b/app/views/ChangeAvatarView/index.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useLayoutEffect, useReducer, useRef, useState } from 'react'; -import { ScrollView, View } from 'react-native'; +import { ScrollView, TextInput, View } from 'react-native'; import { RouteProp, useNavigation, useRoute } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; import { shallowEqual } from 'react-redux'; @@ -64,6 +64,7 @@ function reducer(state: IState, action: IReducerAction) { const ChangeAvatarView = () => { const [state, dispatch] = useReducer(reducer, initialState); + const [url, setUrl] = useState(''); const [saving, setSaving] = useState(false); const { colors } = useTheme(); const { userId, username, server } = useAppSelector( @@ -212,9 +213,9 @@ const ChangeAvatarView = () => { type='secondary' disabled={saving} backgroundColor={colors.buttonBackgroundSecondaryDefault} - onPress={() => pickImage(true)} + onPress={() => console.log()} testID='change-avatar-view-take-a-photo' - style={{ marginTop: 36 }} + style={{ marginTop: 36, marginBottom: 0 }} /> diff --git a/app/views/ChangeAvatarView/styles.ts b/app/views/ChangeAvatarView/styles.ts index 419eca86b22..0496c0e4659 100644 --- a/app/views/ChangeAvatarView/styles.ts +++ b/app/views/ChangeAvatarView/styles.ts @@ -9,7 +9,7 @@ export default StyleSheet.create({ marginBottom: 16 }, separator: { - marginVertical: 16 + marginVertical: 24 }, itemLabel: { marginBottom: 12,