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

View File

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