-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
225 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React from "react"; | ||
import ProfileAvatar from "./ProfileAvatar.tsx"; | ||
import ProfileDescription from "./ProfileDescription.tsx"; | ||
import ProfileOpportunities from "./ProfileOpportunities.tsx"; | ||
import SEO from "..//SEO.tsx"; | ||
import Breadcrumb from "../UIElements/Breadcrumb.tsx"; | ||
|
||
interface Profile { | ||
name: string; | ||
image: string; | ||
department: string; | ||
description: string; | ||
website?: string; | ||
} | ||
|
||
const ProfileComponents = ({ profile, id, staff }: { profile: Profile, id: string, staff: boolean }) => { | ||
return ( | ||
<> | ||
<SEO title={`${profile.name} - Labconnect`} description={`${profile.department} page on labconnect`} /> | ||
{staff && <Breadcrumb | ||
tree={[ | ||
{ | ||
link: "/staff", | ||
title: "Staff", | ||
}, | ||
{ | ||
link: `/staff/department/${profile.department}`, | ||
title: profile.department || "Unknown Department", | ||
}, { | ||
link: `/staff/${id}`, | ||
title: profile.name || "Unknown Staff", | ||
} | ||
]} | ||
/>} | ||
<section className="mt-5"> | ||
<div className="flex gap-5"> | ||
<ProfileAvatar name={profile.name} image={profile.image} /> | ||
<ProfileDescription | ||
website={profile.website} | ||
{...profile} | ||
/> | ||
</div> | ||
{id && <ProfileOpportunities id={id} staff={staff} />} | ||
</section> | ||
</> | ||
); | ||
} | ||
|
||
export default ProfileComponents; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.