Skip to content

Commit

Permalink
Hotfix v2.1.3 (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshika47 authored Jan 22, 2025
2 parents 361d8e0 + 73d8724 commit 754f00b
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/Layout/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const Navbar: React.FC = () => {
className="w-8 md:w-10 h-8 md:h-10 rounded-full"
src={user?.image_url}
alt="user photo"
referrerPolicy="no-referrer"
/>
) : (
<svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const MentorApplication: React.FC = () => {
</div>
<div>
<h3 className="text-base font-bold">Country</h3>
<p>{mentor?.application.country}</p>
<p>{mentor?.country?.name ?? mentor?.application.country}</p>
</div>
<div>
<h3 className="text-base font-bold">Expertise</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const OngoingMentorshipPrograms: React.FC = () => {
<div className="flex flex-col md:flex-row min-h-screen">
<div className="md:w-1/4 p-4 bg-blue-50">
<h2 className="text-2xl font-semibold mb-4">Approved Mentees</h2>
<div className="h-96 md:h-[32rem] overflow-y-auto md:overflow-y-auto">
<div className="h-96 md:h-[32rem] lg:h-screen overflow-y-auto md:overflow-y-auto">
{approvedMentees.map(renderMenteeLink)}
{approvedMentees.length === 0 && (
<p className="text-gray-600">No approved mentees available.</p>
Expand Down
4 changes: 3 additions & 1 deletion src/pages/MentorProfile/MentorProfile.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ const MentorProfile: React.FC = () => {
</div>
<div>
<h2 className="text-lg font-medium mt-5">Country</h2>
<p className="text-sm font-light">{mentor?.application.country}</p>
<p className="text-sm font-light">
{mentor?.country?.name ?? mentor?.application.country}
</p>
</div>
</div>
<div className="flex flex-row md:gap-9 md:m-5 gap-4 mt-4">
Expand Down
1 change: 1 addition & 0 deletions src/pages/MyMentees/MyMentees.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const MyMentees: React.FC = () => {
src={mentee.profile.image_url}
alt={`${mentee.application.firstName} ${mentee.application.lastName}`}
className="w-12 h-12 rounded-full object-cover"
referrerPolicy="no-referrer"
/>
) : (
<div className="w-12 h-12 bg-gray-200 rounded-full flex items-center justify-center">
Expand Down
6 changes: 6 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ export interface Mentor {
application: MentorApplication;
availability: boolean;
profile: Profile;
country: Country;
mentees?: Mentee[];
}

interface Country {
name: string;
uuid: string;
}

export type MenteeApplication = z.infer<typeof MenteeApplicationSchema>;

export type MentorApplication = z.infer<typeof MentorApplicationSchema>;
Expand Down

0 comments on commit 754f00b

Please sign in to comment.