mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
show incoming and current note in merge editor
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React, {createRef, useEffect, useState} from 'react';
|
import React, {createRef, useEffect, useState} from 'react';
|
||||||
import {Modal, SafeAreaView, TouchableOpacity, View} from 'react-native';
|
import {Modal, SafeAreaView, TouchableOpacity, View, Text} from 'react-native';
|
||||||
import Animated, {Easing} from 'react-native-reanimated';
|
import Animated, {Easing} from 'react-native-reanimated';
|
||||||
import {useSafeAreaInsets} from 'react-native-safe-area-context';
|
import {useSafeAreaInsets} from 'react-native-safe-area-context';
|
||||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||||
@@ -432,6 +432,9 @@ const MergeEditor = () => {
|
|||||||
style={{maxWidth: '80%'}}
|
style={{maxWidth: '80%'}}
|
||||||
color={colors.icon}
|
color={colors.icon}
|
||||||
size={SIZE.xs}>
|
size={SIZE.xs}>
|
||||||
|
<Text style={{color: colors.accent, fontWeight: 'bold'}}>
|
||||||
|
(This Device)
|
||||||
|
</Text>{' '}
|
||||||
Saved on {timeConverter(primaryData.dateEdited)}
|
Saved on {timeConverter(primaryData.dateEdited)}
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
<Icon
|
<Icon
|
||||||
@@ -576,6 +579,9 @@ const MergeEditor = () => {
|
|||||||
style={{maxWidth: '80%'}}
|
style={{maxWidth: '80%'}}
|
||||||
color={colors.icon}
|
color={colors.icon}
|
||||||
size={SIZE.xs}>
|
size={SIZE.xs}>
|
||||||
|
<Text style={{color: 'red', fontWeight: 'bold'}}>
|
||||||
|
(Incoming)
|
||||||
|
</Text>{' '}
|
||||||
Saved on {timeConverter(secondaryData.dateEdited)}
|
Saved on {timeConverter(secondaryData.dateEdited)}
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
<Icon
|
<Icon
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export const NoteWrapper = ({item, index, isTrash = false}) => {
|
|||||||
|
|
||||||
|
|
||||||
const onPress = async () => {
|
const onPress = async () => {
|
||||||
if (note.conflicted) {
|
if (!note.conflicted) {
|
||||||
eSendEvent(eShowMergeDialog, note);
|
eSendEvent(eShowMergeDialog, note);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user