Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
suvanbanerjee committed Aug 17, 2024
1 parent 0998df4 commit 64c2b7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/contributing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ const featuresData = [
}
];

const Feature = ({ title, description, icon, url }) => (
const Feature = ({ title, description, icon, url }: { title: string, description: string, icon: JSX.Element, url: string }) => (
<div className="text-center bg-white dark:bg-gray-800 p-8 rounded-xl shadow">
<div className="inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-gray-200 object-cover p-3">
{icon}
</div>
<h3 className="mb-2 text-xl font-bold dark:text-white">{title}</h3>
<p className="font-medium text-gray-500 dark:text-gray-300 md:text-justify">{description}</p>
<a className="btn font-bold text-white bg-black dark:bg-gray-300 dark:text-black rounded-3xl mx-auto m-5" href = {url}>Learn More</a>
<a className="btn font-bold text-white bg-black dark:bg-gray-300 dark:text-black rounded-3xl mx-auto m-5" href={url}>Learn More</a>
</div>
);

Expand Down
4 changes: 2 additions & 2 deletions components/donating.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ const featuresData = [
},
];

const Methods = ({ title, description, icon, url }) => (
const Methods = ({ title, description, icon, url }: { title: string, description: string, icon: JSX.Element, url: string }) => (
<div className="text-center bg-white dark:bg-gray-800 p-8 rounded-xl shadow">
<div className="inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full object-cover">
{icon}
</div>
<h3 className="mb-2 text-xl font-bold dark:text-white">{title}</h3>
<p className="font-medium text-gray-500 dark:text-gray-300 md:text-justify">{description}</p>
<a className="btn font-bold text-white bg-black dark:bg-gray-300 dark:text-black rounded-3xl mx-auto m-5" href = {url}>Learn More</a>
<a className="btn font-bold text-white bg-black dark:bg-gray-300 dark:text-black rounded-3xl mx-auto m-5" href={url}>Learn More</a>
</div>
);

Expand Down

0 comments on commit 64c2b7f

Please sign in to comment.