mobile: support showing diff of conflicted note

This commit is contained in:
Ammar Ahmed
2024-03-15 10:50:26 +05:00
committed by Abdullah Atta
parent eca9f221ac
commit d13ff079a4

View File

@@ -47,6 +47,7 @@ import { Button } from "../ui/button";
import { IconButton } from "../ui/icon-button";
import Seperator from "../ui/seperator";
import Paragraph from "../ui/typography/paragraph";
import { diff } from "diffblazer";
const MergeConflicts = () => {
const { colors } = useThemeColors();
@@ -322,7 +323,10 @@ const MergeConflicts = () => {
if (!note) return;
loadContent({
id: note.id,
data: content.current.data
data: diff(
content.current.conflicted.data,
content.current.data
)
});
}}
/>