Skip to content

Commit

Permalink
rename ad_slots.tsx to adSlots.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Nov 2, 2020
1 parent ab33887 commit 42eb04d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tab-utils
8 changes: 4 additions & 4 deletions views/ClockPage/ClockView.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import BigText from "../BigText";
import { SettingsView } from "../../tab-utils/TabSettings/SettingsView";
import { preset_concept_name } from "./js/preset_concept_name";
import { ad_slots } from "./ad_slots";
import { adSlots } from "./adSlots";
import { Ad_btf_2, Ad_left } from "../../tab-utils/ads/views";

export default ClockView;
Expand All @@ -18,20 +18,20 @@ function ClockView() {
return (
<FullViewLayout>
<LeftSide>
<Ad_left ad_slots={ad_slots} />
<Ad_left ad_slots={adSlots} />
</LeftSide>

<RightSide className="grow-more-panel">
<FullView>
<BigText
id={"clock-container"}
//content_on_top={<Ad_ATF ad_slots={ad_slots} />}
//content_on_top={<Ad_ATF ad_slots={adSlots} />}
top_line_content={<TopLine />}
/>
</FullView>

<MorePanel>
<Ad_btf_2 ad_slots={ad_slots} />
<Ad_btf_2 ad_slots={adSlots} />
<SettingsView preset_concept_name={preset_concept_name} />
</MorePanel>
</RightSide>
Expand Down
6 changes: 3 additions & 3 deletions views/ClockPage/ad_slots.tsx → views/ClockPage/adSlots.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { AdSlots } from "../../tab-utils/ads/adSlots";
import { AdSlots } from "../../tab-utils/ads/slots";

export { ad_slots };
export { adSlots };

const ad_slots: AdSlots = [
const adSlots: AdSlots = [
/*
{
// ct_atf_responsive
Expand Down
4 changes: 2 additions & 2 deletions views/ClockPage/onPageLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import init_clock_options from "./js/init_clock_options";
import auto_remove_hash from "../../tab-utils/auto_remove_hash";
import { on_big_text_load, set_max_width_getter } from "../BigText";
import { sleep } from "../../tab-utils/sleep";
import { ad_slots } from "./ad_slots";
import { adSlots } from "./adSlots";
import { loadAds } from "../../tab-utils/ads/loadAds";

export default onPageLoad;
Expand All @@ -23,7 +23,7 @@ async function onPageLoad(load_common) {

load_common();

loadAds(ad_slots);
loadAds(adSlots);

// To avoid memory leak
//autoReloadPage();
Expand Down

0 comments on commit 42eb04d

Please sign in to comment.