Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
t007rushi committed Apr 7, 2022
1 parent 08327f0 commit ad87619
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/utils/composeFun.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,3 @@ export const composeFilterFunctions =
functions.reduce((acc, curr) => {
return curr(state, acc);
}, notes);

//Filter by priority
// export const filterbyPriority = (state, notes) => {
// if (state.priorities.length !== 0) {
// return notes.filter((item) =>
// state.priorities.includes(item.Note.priority)
// );
// }
// return notes;
// };
//Filter by labels
// export const filterbyLabels = (state, notes) => {
// if (state.tags.length !== 0) {
// return notes.filter(
// (item) =>
// item.Note.labels.filter((tag) => state.tags.includes(tag)).length > 0
// );
// }
// return notes;
// };
//sort by date
// export const sortbydate = (state, notes) => {
// if (state.sortby === "old") {
// return [...notes].sort(
// (a, b) => Date.parse(a.Note.createdAt) - Date.parse(b.Note.createdAt)
// );
// } else if (state.sortby === "new") {
// return [...notes].sort(
// (a, b) => Date.parse(b.Note.createdAt) - Date.parse(a.Note.createdAt)
// );
// }
// return notes;
// };

0 comments on commit ad87619

Please sign in to comment.