From 32873ae04029a22011502f6e2b7820db70759451 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Tue, 30 Apr 2024 11:53:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=87=20chore(ClipViewLocal.tsx,=20Notif?= =?UTF-8?q?ViewLocal.tsx):=20remove=20console.log=20statements=20to=20clea?= =?UTF-8?q?n=20up=20code=20=E2=9C=A8=20feat(NotifList.tsx):=20add=20invert?= =?UTF-8?q?ed=20prop=20to=20lists=20to=20reverse=20the=20order=20of=20list?= =?UTF-8?q?=20items?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/clip/ClipViewLocal.tsx | 2 -- src/components/notif/NotifList.tsx | 2 ++ src/components/notif/NotifViewLocal.tsx | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/clip/ClipViewLocal.tsx b/src/components/clip/ClipViewLocal.tsx index e50074d..5afba62 100644 --- a/src/components/clip/ClipViewLocal.tsx +++ b/src/components/clip/ClipViewLocal.tsx @@ -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 :('); }); } diff --git a/src/components/notif/NotifList.tsx b/src/components/notif/NotifList.tsx index 4217470..4b551b6 100644 --- a/src/components/notif/NotifList.tsx +++ b/src/components/notif/NotifList.tsx @@ -19,6 +19,7 @@ export default function NotifList({ )} keyExtractor={item => nanoid()} + inverted={true} /> ); } else { @@ -34,6 +35,7 @@ export default function NotifList({ /> )} keyExtractor={item => nanoid()} + inverted={true} /> ); } diff --git a/src/components/notif/NotifViewLocal.tsx b/src/components/notif/NotifViewLocal.tsx index 507a826..07ea768 100644 --- a/src/components/notif/NotifViewLocal.tsx +++ b/src/components/notif/NotifViewLocal.tsx @@ -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 :('); }); }