Move recurring elements together
This commit is contained in:
parent
de94aa9a26
commit
8f5fd05926
17 changed files with 1514 additions and 109 deletions
|
|
@ -32,7 +32,10 @@ const Notes: React.FC = () => {
|
|||
const loadNotes = async () => {
|
||||
setIsLoading(true);
|
||||
try {
|
||||
console.log('Attempting to fetch notes...');
|
||||
const fetchedNotes = await fetchNotes();
|
||||
console.log('Fetched notes:', fetchedNotes);
|
||||
console.log('Number of notes:', fetchedNotes.length);
|
||||
setNotes(fetchedNotes);
|
||||
} catch (error) {
|
||||
console.error('Error loading notes:', error);
|
||||
|
|
@ -87,6 +90,10 @@ const Notes: React.FC = () => {
|
|||
note.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||
note.content.toLowerCase().includes(searchQuery.toLowerCase())
|
||||
);
|
||||
|
||||
console.log('All notes:', notes);
|
||||
console.log('Search query:', searchQuery);
|
||||
console.log('Filtered notes:', filteredNotes);
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue