Skip to content

Commit 48b49ff

Browse files
committed
feat: use RecordTile in EducationTile with combined degree and major
1 parent 8e2d743 commit 48b49ff

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { RecordTile } from '@/components/Tiles/RecordTile';
2+
3+
export type EducationTileProps = {
4+
institutionLogo: string;
5+
institutionName: string;
6+
institutionLink: string;
7+
degree: string;
8+
major: string;
9+
duration: string;
10+
details?: React.ReactNode;
11+
};
12+
13+
export function EducationTile({
14+
institutionLogo,
15+
institutionName,
16+
institutionLink,
17+
degree,
18+
major,
19+
duration,
20+
details,
21+
}: EducationTileProps) {
22+
const combinedDegreeNameAndMajor = degree.concat(', ').concat(major);
23+
return (
24+
<RecordTile
25+
organizationLogo={institutionLogo}
26+
organizationName={institutionName}
27+
organizationLink={institutionLink}
28+
role={combinedDegreeNameAndMajor}
29+
duration={duration}
30+
body={details}
31+
organizationBeforeRole={true}
32+
/>
33+
);
34+
}

0 commit comments

Comments
 (0)