Skip to content

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

Make notes section properly selectable (#771)

Leendert de Borst671420105792
diff --git a/apps/mobile-app/components/credentials/details/NotesSection.tsx b/apps/mobile-app/components/credentials/details/NotesSection.tsx
index 50cf59fc4..436923a9f 100644
--- a/apps/mobile-app/components/credentials/details/NotesSection.tsx
+++ b/apps/mobile-app/components/credentials/details/NotesSection.tsx
@@ -102,27 +102,22 @@ export const NotesSection: React.FC<NotesSectionProps> = ({ credential }) : Reac
<ThemedView style={styles.section}>
<ThemedText type="subtitle">Notes</ThemedText>
<View style={styles.notesContainer}>
- <Text style={styles.notes}>
- {parts.map((part, index) => {
- if (part.type === 'url') {
- return (
- <Pressable
- key={index}
- onPress={() => handleLinkPress(part.url!)}
- >
- <Text style={styles.link}>
- {part.content}
- </Text>
- </Pressable>
- );
- }
+ {parts.map((part, index) => {
+ if (part.type === 'url') {
return (
- <Text key={index} selectable={true}>
- {part.content}
- </Text>
+ <Pressable key={index} onPress={() => handleLinkPress(part.url!)}>
+ <Text style={styles.link} selectable={true}>
+ {part.content}
+ </Text>
+ </Pressable>
);
- })}
- </Text>
+ }
+ return (
+ <Text key={index} style={styles.notes} selectable={true}>
+ {part.content}
+ </Text>
+ );
+ })}
</View>
</ThemedView>
);