Skip to content

Commit

Permalink
prettier applied as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
t007rushi committed Apr 7, 2022
1 parent 2e345c6 commit 225da76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/Notes/NotesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import { useNotes } from "../../context/notes-context.js";

export const NotesPage = () => {
const { note } = useNotes();
const pinnedNotes = note ? note.filter((item) => item.Note.ispin && !item.Note.inTrash) : [];
const otherNotes = note ? note.filter((item) => !item.Note.ispin && !item.Note.inTrash) : [];
const pinnedNotes = note
? note.filter((item) => item.Note.ispin && !item.Note.inTrash)
: [];
const otherNotes = note
? note.filter((item) => !item.Note.ispin && !item.Note.inTrash)
: [];
return (
<div className="notes">
<CreateNote />
Expand Down

0 comments on commit 225da76

Please sign in to comment.