File tree 2 files changed +5
-5
lines changed
packages/gitbook/src/components/Ads
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ export function Ad({
79
79
const showPlaceholderAd =
80
80
previewParam === 'placeholder' ||
81
81
( siteAdsStatus &&
82
- ( siteAdsStatus === SiteAdsStatus . Pending || siteAdsStatus === SiteAdsStatus . InReview ) )
82
+ ( siteAdsStatus === SiteAdsStatus . Pending ||
83
+ siteAdsStatus === SiteAdsStatus . InReview ) ) ;
83
84
84
85
if ( ! realZoneId ) {
85
86
return ;
@@ -91,7 +92,7 @@ export function Ad({
91
92
ignore : ignore || preview ,
92
93
zoneId : realZoneId ,
93
94
mode,
94
- source : showPlaceholderAd ? 'placeholder' : 'live'
95
+ source : showPlaceholderAd ? 'placeholder' : 'live' ,
95
96
} ) ;
96
97
97
98
if ( cancelled ) {
Original file line number Diff line number Diff line change @@ -5,10 +5,9 @@ import { headers } from 'next/headers';
5
5
import { AdClassicRendering } from './AdClassicRendering' ;
6
6
import { AdCoverRendering } from './AdCoverRendering' ;
7
7
import { AdPixels } from './AdPixels' ;
8
- import adRainbow from './assets/ad-rainbow.svg'
8
+ import adRainbow from './assets/ad-rainbow.svg' ;
9
9
import { AdItem , AdsResponse } from './types' ;
10
10
11
-
12
11
interface FetchAdOptions {
13
12
/** ID of the zone to fetch Ads for */
14
13
zoneId : string ;
@@ -20,7 +19,7 @@ interface FetchAdOptions {
20
19
ignore : boolean ;
21
20
/**
22
21
* Source of the ad (live: from the platform, placeholder: static placeholder)
23
- *
22
+ *
24
23
* Defaults to live.
25
24
* */
26
25
source ?: 'live' | 'placeholder' ;
You can’t perform that action at this time.
0 commit comments