Skip to content

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

improve input ui

Ammar Ahmed12995930bad7
diff --git a/apps/mobile/src/components/delaylayout/index.tsx b/apps/mobile/src/components/delaylayout/index.tsx
index b325a94a3..ebb49932c 100644
--- a/apps/mobile/src/components/delaylayout/index.tsx
+++ b/apps/mobile/src/components/delaylayout/index.tsx
@@ -1,6 +1,6 @@
import React from 'react';
-import { View, ViewProps } from 'react-native';
-import Animated, { FadeInDown, FadeInUp, FadeOutDown, FadeOutUp } from 'react-native-reanimated';
+import { ViewProps } from 'react-native';
+import Animated, { FadeOutUp } from 'react-native-reanimated';
import { useThemeStore } from '../../stores/use-theme-store';
import { useDelayLayout } from '../../utils/hooks/use-delay-layout';
import { DefaultPlaceholder } from './default-placeholder';
diff --git a/apps/mobile/src/components/ui/input/index.tsx b/apps/mobile/src/components/ui/input/index.tsx
index 83257c61b..abab526d3 100644
--- a/apps/mobile/src/components/ui/input/index.tsx
+++ b/apps/mobile/src/components/ui/input/index.tsx
@@ -317,7 +317,8 @@ const Input = ({
{validationType === 'password' && focus && (
<View
style={{
- paddingTop: 5
+ marginTop: -5,
+ marginBottom: 5
}}
>
{
diff --git a/apps/mobile/src/services/validation.js b/apps/mobile/src/services/validation.js
index 796b64153..06fec7e5e 100644
--- a/apps/mobile/src/services/validation.js
+++ b/apps/mobile/src/services/validation.js
@@ -9,8 +9,7 @@ export function validateEmail(email) {
}
export const ERRORS_LIST = {
- SHORT_PASS: 'Atleast 8 characters',
- error: null
+ SHORT_PASS: 'Atleast 8 characters'
};
export function validatePass(password) {