Skip to content

Commit

Permalink
Update _layout.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Sep 3, 2024
1 parent f598310 commit bd621dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/routes/_site+/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function SiteLayout() {

const adWebId = site?.adWebId;
const gaTrackingId = site?.gaTagId;
const enableAds = site?.enableAds;

return (
<>
Expand All @@ -64,12 +65,12 @@ export default function SiteLayout() {
</section>
<ColumnFour />
</main>
{process.env.NODE_ENV === "production" && !isBot && adWebId && (
{process.env.NODE_ENV === "production" && !isBot && enableAds && (
<RampInit adWebId={adWebId} />
)}
<AdUnit
className="fixed bottom-0 left-0 w-full h-[50px] z-50 bg-3 flex items-center justify-center"
enableAds={site?.enableAds}
enableAds={enableAds}
adType={{
tablet: "leaderboard_btf",
mobile: "leaderboard_btf",
Expand Down

0 comments on commit bd621dc

Please sign in to comment.