Skip to content

Commit

Permalink
Add meta.yearPublished property to reference
Browse files Browse the repository at this point in the history
  • Loading branch information
aishakapan committed Oct 25, 2024
1 parent 684c723 commit 202ff79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/types/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type Reference = {
value: string,
}[],
meta?: {
yearPublished?: string,
label?: string,
},
};
4 changes: 4 additions & 0 deletions src/utils/mocks/references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const references: Reference[] = [
},
],
meta: {
yearPublished: '2019a',
label: '1.',
},
},
Expand Down Expand Up @@ -63,6 +64,7 @@ export const references: Reference[] = [
},
],
meta: {
yearPublished: '2019b',
label: '2.',
},
},
Expand All @@ -88,6 +90,7 @@ export const references: Reference[] = [
},
],
meta: {
yearPublished: '2019b',
label: '2.',
},
},
Expand All @@ -110,6 +113,7 @@ export const references: Reference[] = [
},
],
meta: {
yearPublished: '2019a',
label: '1.',
},
},
Expand Down

0 comments on commit 202ff79

Please sign in to comment.