Skip to content

Commit

Permalink
Update RampUnit.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Sep 9, 2024
1 parent bd57b01 commit 4b807a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/routes/_site+/_components/RampUnit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ export function AdUnit({
};
}, [pathname]);

return enableAds ? (
if (!enableAds) return <div className={className} />;

className = className + " h-[250px] tablet:h-[90px]"; // set Default height to fix ad cls

return (
<ClientOnly fallback={<div className={className} />}>
{() => (
<>
Expand Down Expand Up @@ -131,8 +135,6 @@ export function AdUnit({
</>
)}
</ClientOnly>
) : (
<div className={className} />
);
}

Expand Down

0 comments on commit 4b807a5

Please sign in to comment.