add support for class letters
- SHA
a1687e511efc6b64ec0ad63939d01236869867a8- Parents
-
c8b1793 - Tree
4516cf7
a1687e5
a1687e511efc6b64ec0ad63939d01236869867a8c8b1793
4516cf7| Status | File | + | - |
|---|---|---|---|
| M |
app/memorial/person/[id]/page.tsx
|
1 | 1 |
| M |
lib/api.ts
|
2 | 0 |
app/memorial/person/[id]/page.tsxmodified@@ -139,7 +139,7 @@ export default function PersonPage() { | ||
| 139 | 139 | <div className="space-y-3"> |
| 140 | 140 | {person.class_year && ( |
| 141 | 141 | <p className="text-lg"> |
| 142 | - <span className="font-bold text-gray-700">Class Year:</span> {person.class_year} | |
| 142 | + <span className="font-bold text-gray-700">Class Year:</span> {person.class_year}{person.class_letter || ''} | |
| 143 | 143 | </p> |
| 144 | 144 | )} |
| 145 | 145 | <p className="text-lg"> |
lib/api.tsmodified@@ -77,6 +77,7 @@ export interface Person { | ||
| 77 | 77 | rank: string; |
| 78 | 78 | unit: string; |
| 79 | 79 | class_year?: number; |
| 80 | + class_letter?: string; | |
| 80 | 81 | full_display_name?: string; |
| 81 | 82 | death_description?: string; |
| 82 | 83 | pdf_key?: string; |
@@ -105,6 +106,7 @@ export interface PersonSearchResult { | ||
| 105 | 106 | display_name: string; |
| 106 | 107 | full_display_name: string; |
| 107 | 108 | class_year: number | null; |
| 109 | + class_letter?: string; | |
| 108 | 110 | rank: string; |
| 109 | 111 | unit: string; |
| 110 | 112 | date_of_death: string | null; |