mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
fix ui issues in merge editor
This commit is contained in:
@@ -29,6 +29,7 @@ import DialogHeader from '../Dialog/dialog-header';
|
|||||||
import {updateEvent} from '../DialogManager/recievers';
|
import {updateEvent} from '../DialogManager/recievers';
|
||||||
import Paragraph from '../Typography/Paragraph';
|
import Paragraph from '../Typography/Paragraph';
|
||||||
import KeepAwake from '@sayem314/react-native-keep-awake';
|
import KeepAwake from '@sayem314/react-native-keep-awake';
|
||||||
|
import {timeConverter} from '../../utils/TimeUtils';
|
||||||
|
|
||||||
const {Value, timing} = Animated;
|
const {Value, timing} = Animated;
|
||||||
|
|
||||||
@@ -431,7 +432,11 @@ const MergeEditor = () => {
|
|||||||
{keepContentFrom === 'secondary' ? (
|
{keepContentFrom === 'secondary' ? (
|
||||||
<Button
|
<Button
|
||||||
width={null}
|
width={null}
|
||||||
|
height={40}
|
||||||
title="Discard"
|
title="Discard"
|
||||||
|
type="accent"
|
||||||
|
accentColor="red"
|
||||||
|
accentText="light"
|
||||||
color={colors.errorText}
|
color={colors.errorText}
|
||||||
onPress={onPressDiscardFromPrimaryWebView}
|
onPress={onPressDiscardFromPrimaryWebView}
|
||||||
/>
|
/>
|
||||||
@@ -440,6 +445,7 @@ const MergeEditor = () => {
|
|||||||
{keepContentFrom === 'secondary' ? null : (
|
{keepContentFrom === 'secondary' ? null : (
|
||||||
<Button
|
<Button
|
||||||
width={null}
|
width={null}
|
||||||
|
height={40}
|
||||||
title={keepContentFrom === 'primary' ? 'Undo' : 'Keep'}
|
title={keepContentFrom === 'primary' ? 'Undo' : 'Keep'}
|
||||||
onPress={onPressKeepFromPrimaryWebView}
|
onPress={onPressKeepFromPrimaryWebView}
|
||||||
color={
|
color={
|
||||||
@@ -551,6 +557,7 @@ const MergeEditor = () => {
|
|||||||
{keepContentFrom === 'primary' ? (
|
{keepContentFrom === 'primary' ? (
|
||||||
<Button
|
<Button
|
||||||
width={null}
|
width={null}
|
||||||
|
height={40}
|
||||||
onPress={onPressSaveCopyFromSecondaryWebView}
|
onPress={onPressSaveCopyFromSecondaryWebView}
|
||||||
title="Save Copy"
|
title="Save Copy"
|
||||||
/>
|
/>
|
||||||
@@ -559,8 +566,11 @@ const MergeEditor = () => {
|
|||||||
{keepContentFrom === 'primary' ? (
|
{keepContentFrom === 'primary' ? (
|
||||||
<Button
|
<Button
|
||||||
width={null}
|
width={null}
|
||||||
|
height={40}
|
||||||
title="Discard"
|
title="Discard"
|
||||||
color={colors.errorText}
|
type="accent"
|
||||||
|
accentColor="red"
|
||||||
|
accentText="light"
|
||||||
onPress={onPressDiscardFromSecondaryWebView}
|
onPress={onPressDiscardFromSecondaryWebView}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
Reference in New Issue
Block a user