Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update icon for attachment preview (#1010)

Leendert de Borst490861016a8e
diff --git a/apps/mobile-app/components/credentials/details/AttachmentSection.tsx b/apps/mobile-app/components/credentials/details/AttachmentSection.tsx
index 102a68ca7..ea090c8a9 100644
--- a/apps/mobile-app/components/credentials/details/AttachmentSection.tsx
+++ b/apps/mobile-app/components/credentials/details/AttachmentSection.tsx
@@ -1,6 +1,6 @@
import { Buffer } from 'buffer';
-import { Ionicons } from '@expo/vector-icons';
+import { MaterialIcons } from '@expo/vector-icons';
import * as FileSystem from 'expo-file-system';
import * as Sharing from 'expo-sharing';
import React, { useState, useEffect, useCallback } from 'react';
@@ -254,12 +254,16 @@ export const AttachmentSection: React.FC<AttachmentSectionProps> = ({ credential
</ThemedText>
</View>
<View style={styles.downloadIcon}>
- <Ionicons name="eye-outline" size={24} color={colors.text} />
+ <MaterialIcons
+ name={"visibility"}
+ size={20}
+ color={colors.primary}
+ />
</View>
</View>
</TouchableOpacity>
))}
-
+
{selectedFile && (
<FilePreviewModal
visible={previewModalVisible}
diff --git a/apps/mobile-app/components/credentials/details/FilePreviewModal.tsx b/apps/mobile-app/components/credentials/details/FilePreviewModal.tsx
index cae8c2796..0269728aa 100644
--- a/apps/mobile-app/components/credentials/details/FilePreviewModal.tsx
+++ b/apps/mobile-app/components/credentials/details/FilePreviewModal.tsx
@@ -159,7 +159,7 @@ export const FilePreviewModal: React.FC<FilePreviewModalProps> = ({
header: {
alignItems: 'center',
backgroundColor: colors.background,
- borderBottomColor: colors.border ?? colors.text + '20',
+ borderBottomColor: colors.text + '20',
borderBottomWidth: 1,
flexDirection: 'row',
paddingBottom: 12,