working updates

This commit is contained in:
erik-sn committed 2020-11-01 10:12:58 -05:00
1 parent 18be1a7d0f
commit ce951ceecc
10 files changed
+92 -53

No files matched your search

+2 -4
View File
@@ -6,14 +6,12 @@ import { useNoteDetail } from '../hooks/useNoteDetail';
// add search bar later
const NoteList = ({notes}) => {
const { noteModal, setNoteModal } = useNoteModal();
const { detail, setDetail } = useNoteDetail();
const { setNoteModal } = useNoteModal();
const { setDetail } = useNoteDetail();
const handleNoteModal = (note) => {
setNoteModal(true)
setDetail(note)
console.log(note.id)
}
return (