mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-23 08:04:28 -04:00
consistent use of arrow functions/default exports
This commit is contained in:
@@ -6,17 +6,13 @@ import List from "../../components/notes/List";
|
||||
import { getAllNotes } from "../../lib/parse-notes";
|
||||
import type { GetStaticProps } from "next";
|
||||
|
||||
export default function Notes({ notesByYear }) {
|
||||
return (
|
||||
<>
|
||||
<Layout>
|
||||
<Container title="Notes" description="Recent posts by Jake Jarvis.">
|
||||
<List notesByYear={notesByYear} />
|
||||
</Container>
|
||||
</Layout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
const Notes = ({ notesByYear }) => (
|
||||
<Layout>
|
||||
<Container title="Notes" description="Recent posts by Jake Jarvis.">
|
||||
<List notesByYear={notesByYear} />
|
||||
</Container>
|
||||
</Layout>
|
||||
);
|
||||
|
||||
export const getStaticProps: GetStaticProps = async () => {
|
||||
const allNotes = getAllNotes(["date", "slug", "title"]);
|
||||
@@ -30,3 +26,5 @@ export const getStaticProps: GetStaticProps = async () => {
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export default Notes;
|
||||
|
Reference in New Issue
Block a user