🔇 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()
|
||||
.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 :(');
|
||||
});
|
||||
}
|
||||
|
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
@ -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 :(');
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user