Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix password validation list not shown correctly

ammarahm-ed0a7e1f2dad37
diff --git a/apps/mobile/src/components/Input/index.js b/apps/mobile/src/components/Input/index.js
index c433f32e1..d0531cd8d 100644
--- a/apps/mobile/src/components/Input/index.js
+++ b/apps/mobile/src/components/Input/index.js
@@ -150,8 +150,8 @@ const Input = ({
style={{
height: height,
marginBottom: marginBottom,
- flexGrow:1,
- maxHeight:height
+ flexGrow: 1,
+ maxHeight: height,
}}>
<TouchableOpacity
disabled={!loading}
@@ -259,38 +259,38 @@ const Input = ({
</View>
) : null}
</TouchableOpacity>
+ </View>
- {validationType === 'password' && focus && (
- <View
- style={{
- paddingTop: 5,
- }}>
- {Object.keys(errorList).filter((k) => errorList[k] === true)
- .length !== 0 ? (
- Object.keys(ERRORS_LIST).map((error) => (
- <View
- style={{
- flexDirection: 'row',
- alignItems: 'center',
- }}>
- <Icon
- name={errorList[error] ? 'close' : 'check'}
- color={errorList[error] ? 'red' : 'green'}
- />
+ {validationType === 'password' && focus && (
+ <View
+ style={{
+ paddingTop: 5,
+ }}>
+ {Object.keys(errorList).filter((k) => errorList[k] === true)
+ .length !== 0 ? (
+ Object.keys(ERRORS_LIST).map((error) => (
+ <View
+ style={{
+ flexDirection: 'row',
+ alignItems: 'center',
+ }}>
+ <Icon
+ name={errorList[error] ? 'close' : 'check'}
+ color={errorList[error] ? 'red' : 'green'}
+ />
- <Paragraph style={{marginLeft: 5}} size={SIZE.xs}>
- {ERRORS_LIST[error]}
- </Paragraph>
- </View>
- ))
- ) : (
- <Paragraph color={colors.green} size={SIZE.xs}>
- Password is strong.
- </Paragraph>
- )}
- </View>
- )}
- </View>
+ <Paragraph style={{marginLeft: 5}} size={SIZE.xs}>
+ {ERRORS_LIST[error]}
+ </Paragraph>
+ </View>
+ ))
+ ) : (
+ <Paragraph color={colors.green} size={SIZE.xs}>
+ Password is strong.
+ </Paragraph>
+ )}
+ </View>
+ )}
</>
);
};