Skip to content

Commit f7735d5

Browse files
authored
Merge pull request #626 from getsolus/redo-middle-name-support
2 parents 6a0c804 + ff58f3d commit f7735d5

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/components/Person.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const Person = ({ embeddedIn, isBadge = false, onAvatarClick, person, sx
2020
const usePersonRow = useMediaQuery(SiteTheme.breakpoints.up("sm"));
2121
const key = `Person-${embeddedIn}-${person.names.first}${person.names.last}`;
2222
const avatar = useBaseUrl(`/img/avatars/${person.names.first}${person.names.last}.webp`);
23-
const name = `${person.names.first} ${person.names.last}`;
23+
const name = `${person.names.first} ${person.names.middle ?? ""} ${person.names.last}`;
2424

2525
const github = person.websites.find((w) => w.type === WebsiteType.GITHUB);
2626
const primarySite = person.websites.find((w) => w.type === WebsiteType.WEBSITE) ?? github;

src/components/Teams.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const TeamMember = ({ haveSupplementalInfo, teamName, person, supplementa
3636
person={person}
3737
sx={{ minWidth: 240 }}
3838
/>
39-
{haveSupplementalInfo && <Box sx={{ fontWeight: "bold", lineHeight: "40px" }}>{supplementalInfo}</Box>}
39+
{haveSupplementalInfo && <Box sx={{ fontWeight: "bold", lineHeight: "40px", marginInlineStart: "6px" }}>{supplementalInfo}</Box>}
4040
</Stack>
4141
);
4242
};

src/data/people.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ export const People: Record<string, Person> = {
186186
matrix: "@alfisya:matrix.org",
187187
names: {
188188
first: "Muhammad",
189+
middle: "Alfi",
189190
last: "Syahrin",
190191
},
191192
websites: [

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export type Person = {
2424

2525
export type PersonName = {
2626
first: string;
27+
middle?: string;
2728
last: string;
2829
};
2930

0 commit comments

Comments
 (0)