🔇 chore(ClipViewLocal.tsx, NotifViewLocal.tsx): remove console.log statements to clean up code
Some checks failed
Building APK / build-apk (push) Failing after 7m40s
Some checks failed
Building APK / build-apk (push) Failing after 7m40s
✨ feat(NotifList.tsx): add inverted prop to lists to reverse the order of list items
This commit is contained in:
parent
9cb3a0bebe
commit
32873ae040
@ -21,13 +21,11 @@ export default function ClipViewLocal({}) {
|
|||||||
Clipboard.getStringAsync()
|
Clipboard.getStringAsync()
|
||||||
.then(value => {
|
.then(value => {
|
||||||
let newClip = {content: value};
|
let newClip = {content: value};
|
||||||
console.log(value);
|
|
||||||
dispatch(localClipAddToList(newClip));
|
dispatch(localClipAddToList(newClip));
|
||||||
setClips([...clips, newClip]);
|
setClips([...clips, newClip]);
|
||||||
toast.show('copied "' + value + '" into history');
|
toast.show('copied "' + value + '" into history');
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.log(error);
|
|
||||||
toast.show('could not retreive last copied element :(');
|
toast.show('could not retreive last copied element :(');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ export default function NotifList({
|
|||||||
<NotifElementLocal title={item.title} content={item.content} />
|
<NotifElementLocal title={item.title} content={item.content} />
|
||||||
)}
|
)}
|
||||||
keyExtractor={item => nanoid()}
|
keyExtractor={item => nanoid()}
|
||||||
|
inverted={true}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@ -34,6 +35,7 @@ export default function NotifList({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
keyExtractor={item => nanoid()}
|
keyExtractor={item => nanoid()}
|
||||||
|
inverted={true}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -33,13 +33,11 @@ export default function NotifViewLocal({}) {
|
|||||||
title: 'placeholder title',
|
title: 'placeholder title',
|
||||||
content: 'placeholder content',
|
content: 'placeholder content',
|
||||||
};
|
};
|
||||||
console.log(value);
|
|
||||||
dispatch(localNotifAddToList(newNotif));
|
dispatch(localNotifAddToList(newNotif));
|
||||||
setNotifs([...notifs, newNotif]);
|
setNotifs([...notifs, newNotif]);
|
||||||
toast.show('added "' + value + '" into history');
|
toast.show('added "' + value + '" into history');
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.log(error);
|
|
||||||
toast.show('could not retreive last notification :(');
|
toast.show('could not retreive last notification :(');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user