Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit c9753e0

Browse files
committed
remove below the fold units for now
1 parent 1a0500a commit c9753e0

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/components/AdSpace.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ import React, { useEffect } from "react";
99

1010
export enum UnitType {
1111
BottomRail = "bottom_rail",
12-
Skyscraper160x600 = "sky_atf",
13-
Skyscraper300x600 = "sky_btf",
14-
MediumRect300x250 = "med_rect_atf",
15-
MediumRect320x50 = "med_rect_ctf",
12+
Skyscraper = "sky_atf",
13+
MediumRect = "med_rect_atf",
1614
}
1715

1816
export const adSpaceSize = {
1917
[UnitType.BottomRail]: { height: 50, width: 320 },
20-
[UnitType.Skyscraper160x600]: { height: 600, width: 160 },
21-
[UnitType.Skyscraper300x600]: { height: 600, width: 300 },
22-
[UnitType.MediumRect300x250]: { height: 250, width: 300 },
23-
[UnitType.MediumRect320x50]: { height: 50, width: 320 },
18+
[UnitType.Skyscraper]: { height: 600, width: 160 },
19+
[UnitType.MediumRect]: { height: 250, width: 300 },
2420
};
2521

2622
interface AdSpaceProps {

src/components/Layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
201201
<ConstraintBox constraints={[new OutsideBoundsConstraint(900, 1200)]}>
202202
<AdSpace
203203
name={playwireUnitLeftSide}
204-
unitType={UnitType.Skyscraper300x600}
204+
unitType={UnitType.Skyscraper}
205205
/>
206206
</ConstraintBox>
207207
<ConstraintBox
@@ -212,7 +212,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
212212
>
213213
<AdSpace
214214
name={playwireUnitLeftSideSmall}
215-
unitType={UnitType.MediumRect300x250}
215+
unitType={UnitType.MediumRect}
216216
/>
217217
</ConstraintBox>
218218
</>

src/pages/build/Build.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ const Build: React.FC = () => {
496496
<CenterBox>
497497
<AdSpace
498498
name={playwireUnitUnderPerkList}
499-
unitType={UnitType.MediumRect300x250}
499+
unitType={UnitType.MediumRect}
500500
/>
501501
</CenterBox>
502502
</ConstraintBox>

0 commit comments

Comments
 (0)