Skip to content

CW2 28 create modal on sponsor click #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jun 27, 2024
Prev Previous commit
Next Next commit
made linter stop complaining
  • Loading branch information
QuadAces committed Jun 20, 2024
commit d67cc644e7ef0357eeadaf63cab9b39e2db8a998
4 changes: 2 additions & 2 deletions frontend/src/components/Sponsors/sponsorModal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { setFlagsFromString } from 'v8';
import { MouseEventHandler } from 'react';

Check warning on line 1 in frontend/src/components/Sponsors/sponsorModal.tsx

View workflow job for this annotation

GitHub Actions / build

'MouseEventHandler' is defined but never used
import { sponsorInfo } from '../../../public/data/data';
//@ts-ignore

export default function SponsorModal(props: { sponsorInfo: sponsorInfo | null; setFalse: any }) {

Check warning on line 4 in frontend/src/components/Sponsors/sponsorModal.tsx

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
if (props.sponsorInfo === null) {
return (
<div>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/Sponsors/sponsorlinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function SponsorLinks() {
return (
<div className="flex justify-center items-center my-20">
<div className="w-100 flex flex-col gap-16">
{/* @ts-ignore */}
{showModal && (
<SponsorModal
sponsorInfo={information}
Expand Down
Loading