🔇 chore(ClipViewLocal.tsx, NotifViewLocal.tsx): remove console.log statements to clean up code
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:
Djalim Simaila 2024-04-30 11:53:07 +02:00
parent 9cb3a0bebe
commit 32873ae040
3 changed files with 2 additions and 4 deletions

View File

@ -21,13 +21,11 @@ export default function ClipViewLocal({}) {
Clipboard.getStringAsync()
.then(value => {
let newClip = {content: value};
console.log(value);
dispatch(localClipAddToList(newClip));
setClips([...clips, newClip]);
toast.show('copied "' + value + '" into history');
})
.catch(error => {
console.log(error);
toast.show('could not retreive last copied element :(');
});
}

View File

@ -19,6 +19,7 @@ export default function NotifList({
<NotifElementLocal title={item.title} content={item.content} />
)}
keyExtractor={item => nanoid()}
inverted={true}
/>
);
} else {
@ -34,6 +35,7 @@ export default function NotifList({
/>
)}
keyExtractor={item => nanoid()}
inverted={true}
/>
);
}

View File

@ -33,13 +33,11 @@ export default function NotifViewLocal({}) {
title: 'placeholder title',
content: 'placeholder content',
};
console.log(value);
dispatch(localNotifAddToList(newNotif));
setNotifs([...notifs, newNotif]);
toast.show('added "' + value + '" into history');
})
.catch(error => {
console.log(error);
toast.show('could not retreive last notification :(');
});
}