Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Linting fixes (#846)
Leendert de Borst67759a814e96
diff --git a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsxindex f899f892f..d3aa6fcad 100644--- a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx+++ b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx@@ -25,8 +25,6 @@ import LoadingOverlay from '@/components/LoadingOverlay';import { useAuth } from '@/context/AuthContext';import { ThemedContainer } from '@/components/themed/ThemedContainer';import { extractServiceNameFromUrl } from '@/utils/UrlUtility';-import { useSafeAreaInsets } from 'react-native-safe-area-context';-type CredentialMode = 'random' | 'manual';@@ -46,7 +44,6 @@ export default function AddEditCredentialScreen() : React.ReactNode {const [isPasswordVisible, setIsPasswordVisible] = useState(false);const serviceNameRef = useRef<ValidatedFormFieldRef>(null);const [isLoading, setIsLoading] = useState(false);- const insets = useSafeAreaInsets();const { control, handleSubmit, setValue, watch } = useForm<Credential>({resolver: yupResolver(credentialSchema) as Resolver<Credential>,@@ -399,9 +396,6 @@ export default function AddEditCredentialScreen() : React.ReactNode {};const styles = StyleSheet.create({- keyboardContainer: {- flex: 1,- },container: {flex: 1,paddingTop: Platform.OS === 'ios' ? 52 : 0,@@ -448,6 +442,9 @@ export default function AddEditCredentialScreen() : React.ReactNode {padding: 10,paddingRight: 0,},+ keyboardContainer: {+ flex: 1,+ },modeButton: {alignItems: 'center',borderRadius: 6,diff --git a/apps/mobile-app/app/(tabs)/settings/security/active-sessions.tsx b/apps/mobile-app/app/(tabs)/settings/security/active-sessions.tsxindex 7863c067b..f2742e8bc 100644--- a/apps/mobile-app/app/(tabs)/settings/security/active-sessions.tsx+++ b/apps/mobile-app/app/(tabs)/settings/security/active-sessions.tsx@@ -1,6 +1,5 @@-import { StyleSheet, View, TouchableOpacity, Alert, ScrollView, RefreshControl, Platform } from 'react-native';+import { StyleSheet, View, TouchableOpacity, Alert, RefreshControl, Platform } from 'react-native';import { useState, useEffect, useCallback } from 'react';-import { useSafeAreaInsets } from 'react-native-safe-area-context';import * as Haptics from 'expo-haptics';import Toast from 'react-native-toast-message';@@ -17,7 +16,6 @@ import { ThemedScrollView } from '@/components/themed/ThemedScrollView';*/export default function ActiveSessionsScreen() : React.ReactNode {const colors = useColors();- const insets = useSafeAreaInsets();const webApi = useWebApi();const [refreshTokens, setRefreshTokens] = useState<RefreshToken[]>([]);@@ -25,10 +23,6 @@ export default function ActiveSessionsScreen() : React.ReactNode {const [isRefreshing, setIsRefreshing] = useMinDurationLoading(false, 200);const styles = StyleSheet.create({- contentContainer: {- paddingBottom: 40,- paddingTop: Platform.OS === 'ios' ? insets.top : 0,- },detailText: {color: colors.textMuted,fontSize: 14,@@ -51,9 +45,6 @@ export default function ActiveSessionsScreen() : React.ReactNode {fontSize: 16,textAlign: 'center',},- header: {- paddingTop: 12- },headerText: {color: colors.textMuted,fontSize: 13,diff --git a/apps/mobile-app/app/(tabs)/settings/security/auth-logs.tsx b/apps/mobile-app/app/(tabs)/settings/security/auth-logs.tsxindex f589807c6..810e26ded 100644--- a/apps/mobile-app/app/(tabs)/settings/security/auth-logs.tsx+++ b/apps/mobile-app/app/(tabs)/settings/security/auth-logs.tsx@@ -1,6 +1,5 @@-import { StyleSheet, View, ScrollView, RefreshControl, Platform } from 'react-native';+import { StyleSheet, View, RefreshControl, Platform } from 'react-native';import { useState, useEffect, useCallback } from 'react';-import { useSafeAreaInsets } from 'react-native-safe-area-context';import * as Haptics from 'expo-haptics';import Toast from 'react-native-toast-message';@@ -19,7 +18,6 @@ import { ThemedScrollView } from '@/components/themed/ThemedScrollView';*/export default function AuthLogsScreen() : React.ReactNode {const colors = useColors();- const insets = useSafeAreaInsets();const webApi = useWebApi();const [logs, setLogs] = useState<AuthLogModel[]>([]);@@ -27,10 +25,6 @@ export default function AuthLogsScreen() : React.ReactNode {const [isRefreshing, setIsRefreshing] = useMinDurationLoading(false, 200);const styles = StyleSheet.create({- contentContainer: {- paddingBottom: 40,- paddingTop: Platform.OS === 'ios' ? insets.top : 0,- },detailText: {color: colors.textMuted,fontSize: 14,@@ -51,9 +45,6 @@ export default function AuthLogsScreen() : React.ReactNode {fontSize: 16,fontWeight: '600',},- header: {- paddingTop: 12,- },headerText: {color: colors.textMuted,fontSize: 13,diff --git a/apps/mobile-app/app/(tabs)/settings/security/delete-account.tsx b/apps/mobile-app/app/(tabs)/settings/security/delete-account.tsxindex e1f9366ac..5a4280ee2 100644--- a/apps/mobile-app/app/(tabs)/settings/security/delete-account.tsx+++ b/apps/mobile-app/app/(tabs)/settings/security/delete-account.tsx@@ -1,7 +1,6 @@-import { StyleSheet, View, Alert, ScrollView, KeyboardAvoidingView, Platform } from 'react-native';+import { StyleSheet, View, Alert, KeyboardAvoidingView, Platform } from 'react-native';import { router } from 'expo-router';import { useState } from 'react';-import { useSafeAreaInsets } from 'react-native-safe-area-context';import srp from 'secure-remote-password/client';import { ThemedText } from '@/components/themed/ThemedText';@@ -22,7 +21,6 @@ import { ThemedScrollView } from '@/components/themed/ThemedScrollView';*/export default function DeleteAccountScreen(): React.ReactNode {const colors = useColors();- const insets = useSafeAreaInsets();const webApi = useWebApi();const { username, verifyPassword, logout } = useAuth();