File tree Expand file tree Collapse file tree 4 files changed +38
-106
lines changed Expand file tree Collapse file tree 4 files changed +38
-106
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ export const EUROPE_TIMEZONES = [
2
+ 'Europe/Vienna' ,
3
+ 'Europe/Brussels' ,
4
+ 'Europe/Sofia' ,
5
+ 'Europe/Zagreb' ,
6
+ 'Asia/Famagusta' ,
7
+ 'Asia/Nicosia' ,
8
+ 'Europe/Prague' ,
9
+ 'Europe/Copenhagen' ,
10
+ 'Europe/Tallinn' ,
11
+ 'Europe/Helsinki' ,
12
+ 'Europe/Paris' ,
13
+ 'Europe/Berlin' ,
14
+ 'Europe/Busingen' ,
15
+ 'Europe/Athens' ,
16
+ 'Europe/Budapest' ,
17
+ 'Europe/Dublin' ,
18
+ 'Europe/Rome' ,
19
+ 'Europe/Riga' ,
20
+ 'Europe/Vilnius' ,
21
+ 'Europe/Luxembourg' ,
22
+ 'Europe/Malta' ,
23
+ 'Europe/Amsterdam' ,
24
+ 'Europe/Warsaw' ,
25
+ 'Atlantic/Azores' ,
26
+ 'Atlantic/Madeira' ,
27
+ 'Europe/Lisbon' ,
28
+ 'Europe/Bucharest' ,
29
+ 'Europe/Bratislava' ,
30
+ 'Europe/Ljubljana' ,
31
+ 'Africa/Ceuta' ,
32
+ 'Atlantic/Canary' ,
33
+ 'Europe/Madrid' ,
34
+ 'Europe/Stockholm'
35
+ ] ;
Original file line number Diff line number Diff line change @@ -14,42 +14,7 @@ import * as actions from '../actions';
14
14
15
15
import CodeContainer from './CodeContainer' ;
16
16
import OptionsContainer from './OptionsContainer' ;
17
-
18
- const EU_TIMEZONES = [
19
- 'Europe/Vienna' ,
20
- 'Europe/Brussels' ,
21
- 'Europe/Sofia' ,
22
- 'Europe/Zagreb' ,
23
- 'Asia/Famagusta' ,
24
- 'Asia/Nicosia' ,
25
- 'Europe/Prague' ,
26
- 'Europe/Copenhagen' ,
27
- 'Europe/Tallinn' ,
28
- 'Europe/Helsinki' ,
29
- 'Europe/Paris' ,
30
- 'Europe/Berlin' ,
31
- 'Europe/Busingen' ,
32
- 'Europe/Athens' ,
33
- 'Europe/Budapest' ,
34
- 'Europe/Dublin' ,
35
- 'Europe/Rome' ,
36
- 'Europe/Riga' ,
37
- 'Europe/Vilnius' ,
38
- 'Europe/Luxembourg' ,
39
- 'Europe/Malta' ,
40
- 'Europe/Amsterdam' ,
41
- 'Europe/Warsaw' ,
42
- 'Atlantic/Azores' ,
43
- 'Atlantic/Madeira' ,
44
- 'Europe/Lisbon' ,
45
- 'Europe/Bucharest' ,
46
- 'Europe/Bratislava' ,
47
- 'Europe/Ljubljana' ,
48
- 'Africa/Ceuta' ,
49
- 'Atlantic/Canary' ,
50
- 'Europe/Madrid' ,
51
- 'Europe/Stockholm'
52
- ] ;
17
+ import { EUROPE_TIMEZONES } from '../constants/EuropeTimezones' ;
53
18
54
19
class App extends Component {
55
20
@@ -112,7 +77,7 @@ class App extends Component {
112
77
isConsentRequired ( ) {
113
78
dayjs . extend ( timezone ) ;
114
79
115
- return EU_TIMEZONES . includes ( dayjs . tz . guess ( ) ) ;
80
+ return EUROPE_TIMEZONES . includes ( dayjs . tz . guess ( ) ) ;
116
81
}
117
82
118
83
enableCookies ( ) {
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ import {getEmojiSupportRenderer} from '../util/get-emoji-support-renderer';
13
13
14
14
import * as types from '../constants/ActionTypes' ;
15
15
import * as actions from '../actions' ;
16
- import { ads } from "../constants/Ads" ;
17
- import { Adsense } from "@ctrl/react-adsense" ;
18
16
19
17
export const OPTIONS_PRESET_DEFAULT = 'default' ;
20
18
export const OPTIONS_PRESET_LOW_OBFUSCATION = 'low-obfuscation' ;
@@ -562,23 +560,7 @@ const Options = ({dispatch, options}) => {
562
560
< ReactMarkdown
563
561
source = { getOptionsMarkdown ( ) }
564
562
renderers = { {
565
- heading : ( props ) => {
566
- const showAd = shouldShowAd ( props . level , headingCounter . current )
567
-
568
- let ad = null
569
-
570
- if ( showAd ) {
571
- ad = ads [ readmeAdCounter . current ]
572
- readmeAdCounter . current ++
573
- }
574
-
575
- headingCounter . current ++
576
-
577
- return getHeadingRenderer ( {
578
- ...props ,
579
- adData : showAd ? ad : null
580
- } )
581
- } ,
563
+ heading : getHeadingRenderer ,
582
564
text : getEmojiSupportRenderer
583
565
} }
584
566
/>
You can’t perform that action at this time.
0 commit comments