Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhawa97 committed Aug 9, 2024
1 parent f39018f commit c25e3f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/components/MenteeList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const MenteeProfilePic: React.FC<{ src: string; alt: string }> = ({
alt={alt}
className="inline-block h-10 w-10 rounded-full ring-2 ring-white"
referrerPolicy="no-referrer"
onError={() => setIsError(true)}
onError={() => {
setIsError(true);
}}
/>
);
};
Expand Down
19 changes: 10 additions & 9 deletions src/pages/MentorProfile/MentorProfile.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const MentorProfile: React.FC = () => {
.then(() => {
setIsURLCopied(true);
})
.catch(() => { });
.catch(() => {});
};

return (
Expand Down Expand Up @@ -118,10 +118,11 @@ const MentorProfile: React.FC = () => {
>
<button
className={`text-white font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2
${isMenteeApplicationsDisabled
${
isMenteeApplicationsDisabled
? 'bg-gray-400'
: 'bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300'
}`}
}`}
onClick={onApply}
disabled={isMenteeApplicationsDisabled}
>
Expand Down Expand Up @@ -193,12 +194,12 @@ const MentorProfile: React.FC = () => {
<p className="font-light">
{mentor?.application.noOfMentees && mentor.mentees
? Math.max(
0,
mentor.application.noOfMentees -
mentor.mentees.filter(
(mentee) => mentee.state === ApplicationStatus.APPROVED
).length
)
0,
mentor.application.noOfMentees -
mentor.mentees.filter(
(mentee) => mentee.state === ApplicationStatus.APPROVED
).length
)
: 'Not mentioned'}
</p>
</div>
Expand Down

0 comments on commit c25e3f5

Please sign in to comment.