update move note dialog

This commit is contained in:
ammarahm-ed
2021-01-14 17:41:27 +05:00
parent 32c0325b33
commit ace4888254
2 changed files with 9 additions and 5 deletions

View File

@@ -424,11 +424,10 @@ const MoveNoteComponent = ({close, note, setNote}) => {
<View>
<Paragraph color={colors.heading}>
{item.title}
{'\n'}
<Paragraph color={colors.icon} size={SIZE.xs}>
</Paragraph>
<Paragraph color={colors.icon} size={SIZE.xs}>
{item.totalNotes + ' notes'}
</Paragraph>
</Paragraph>
</View>
{note?.notebooks?.findIndex(
(o) => o.topics.indexOf(item.id) > -1,
@@ -436,8 +435,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {
<Button
onPress={() => handlePress(item, index)}
title="Remove Note"
type="accent"
accentColor="red"
type="error"
height={22}
style={{
margin: 1,

View File

@@ -189,6 +189,12 @@ export const BUTTON_TYPES = {
selected: 'accent',
opacity: 0.12,
},
error: {
primary: 'red',
text: 'red',
selected: 'red',
opacity: 0.12,
},
};
export function toTXT(data) {