Skip to content

Commit

Permalink
Fixing ads
Browse files Browse the repository at this point in the history
  • Loading branch information
achoi51 committed Sep 13, 2024
1 parent 4b27b0d commit d8afc09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions advertisements/BannerAdvertisement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import styles from "../styles/Advertisement.module.css";
const BannerAdvertisement = (props: { index: number; show_ad: boolean }) => {
let index = props.index % banner_advertisements.length;

if (!banner_advertisements[index]) return null;

return (
<Link
href={banner_advertisements[index].url}
Expand Down
14 changes: 7 additions & 7 deletions advertisements/BannerAdvertisements.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const BannerAdvertisements: {
name: string;
image_src: string;
url: string;
}[] = [

];
const BannerAdvertisements = [
{
name: "Prompt College Application and Essay Coaching",
image_src: "/images/ads/prompt_banner.png",
url: "https://www.myprompt.com/",
},
];
export default BannerAdvertisements;

0 comments on commit d8afc09

Please sign in to comment.