diff --git a/components/notes/List.tsx b/components/notes/List.tsx index cd54cf73..394da005 100644 --- a/components/notes/List.tsx +++ b/components/notes/List.tsx @@ -1,6 +1,5 @@ import Link from "next/link"; -import { format, parseISO } from "date-fns"; -import groupBy from "lodash.groupby"; +import { format } from "date-fns"; import styles from "./List.module.scss"; @@ -10,18 +9,17 @@ type NoteProps = { slug: string; }; -const List = ({ notes }) => { - const notesByYear = groupBy(notes, "year"); +const List = ({ notesByYear }) => { const sections = []; - Object.entries(notesByYear).forEach(([year, yearNotes]: [string, NoteProps[]]) => { + Object.entries(notesByYear).forEach(([year, notes]: [string, NoteProps[]]) => { sections.push(

{year}