mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 06:21:17 -04:00
clean up strict types a bit more
This commit is contained in:
@@ -55,13 +55,15 @@ const PostDate = styled(Time, {
|
||||
});
|
||||
|
||||
export type NotesListProps = {
|
||||
notesByYear: { [key: string]: NoteFrontMatter[] };
|
||||
notesByYear: {
|
||||
[year: string]: NoteFrontMatter[];
|
||||
};
|
||||
};
|
||||
|
||||
const NotesList = ({ notesByYear }: NotesListProps) => {
|
||||
const sections: ReactElement[] = [];
|
||||
|
||||
Object.entries(notesByYear).forEach(([year, notes]: [string, NoteFrontMatter[]]) => {
|
||||
Object.entries(notesByYear).forEach(([year, notes]) => {
|
||||
sections.push(
|
||||
<Section key={year}>
|
||||
<Year>{year}</Year>
|
||||
|
Reference in New Issue
Block a user